Linked Questions

549 votes
37 answers
131k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
5 votes
5 answers
493 views

How can I sort {S1, S15, S19, S2, ...}?

How can I sort this in order from small to large? Simple Sort doesn't work here. ...
hana's user avatar
  • 2,390
8 votes
4 answers
1k views

SortBy first element then second element, and so on?

SortBy can sort list by first element easily like so: SortBy[{{1, 6}, {1, 2, 8}, {2}}, First] and the result is: {{1, 6}, {...
liang's user avatar
  • 589
34 votes
3 answers
2k views

Is there a "precedence table" for the canonical Sort ordering?

This answer in which I wrote about the Operator Precedence Table was unexpectedly popular. That got me thinking about similar things, and I am wondering: Does an "ordering table" exist for the ...
Mr.Wizard's user avatar
  • 272k
7 votes
3 answers
2k views

Properly ordering the output of FileNames for a directory consisting of files with consecutive integer names [duplicate]

Say I have a number of files in a directory at some location (C:\dir1\dir2\dir3...), and I pull an array of strings corresponding to the file names with the command: ...
user9564's user avatar
3 votes
1 answer
758 views

Windows Explorer Natural Order

Currently there are a list of notebooks in Windows that I am processing in a folder. Ideally I would like the notebooks to be concated in the same order as how they display in Windows Explorer. I ...
William's user avatar
  • 7,605
2 votes
1 answer
291 views

How to sort string codes by their alpha and numeric tokens?

I have a large list of codes of the following form: codes = {"Fee.C21HJ.S4", "Fee.TOxC12.S1", "Fee.TOxC9.2 BB", "Fee.ROxC9.4", "Lag.C39"}; I would like to sort ...
Edmund's user avatar
  • 42.3k
2 votes
1 answer
911 views

How do I resolve the "Specified file is not a MathLink executable" in SerialIO package?

I've read and tried the previous StackExchange suggestions here about installing the SerialIO package (including placing SerialIO in the same folder as init.m and and editing the init.m file per ...
PlaysDice's user avatar
  • 804
1 vote
1 answer
498 views

Import image files in the order of the file name number [duplicate]

I would like to import images which are frames from a video, they are numbered, so importing them in the correct order should not be a problem... However, when I import them, by writing: ...
james's user avatar
  • 3,083
0 votes
1 answer
113 views

Can't sort my list numerically for larger numbers than 10 e.g. 1,10,100,2 [duplicate]

I want my files names in real numerical order so 1,2,3,10,12. However it is currently putting them in order like so: 1,10,12,2,3 Input: ...
David's user avatar
  • 33
0 votes
0 answers
40 views

Sort giving unexpected output! [duplicate]

I want to perform sorting on a list of strings, If i take for example the list s s = {"test9","test8","test10"}; If I perform ...
kevin's user avatar
  • 97