I have some file names like this:
fileNames = {"F:\\mathematica\\liu3\\62.jpg",
"F:\\mathematica\\liu3\\1.jpg", "F:\\mathematica\\liu3\\2.jpg",
"F:\\mathematica\\liu3\\3.jpg", "F:\\mathematica\\liu3\\4.jpg",
"F:\\mathematica\\liu3\\5.jpg", "F:\\mathematica\\liu3\\6.jpg",
"F:\\mathematica\\liu3\\7.jpg", "F:\\mathematica\\liu3\\42.jpg",
"F:\\mathematica\\liu3\\52.jpg"};
I want get a better order for they.But when I use Sort
for this
Sort@fileNames
Then I get:
{"F:\mathematica\liu3\1.jpg", "F:\mathematica\liu3\2.jpg", \ "F:\mathematica\liu3\3.jpg", "F:\mathematica\liu3\42.jpg", \ "F:\mathematica\liu3\4.jpg", "F:\mathematica\liu3\52.jpg", \ "F:\mathematica\liu3\5.jpg", "F:\mathematica\liu3\62.jpg", \ "F:\mathematica\liu3\6.jpg", "F:\mathematica\liu3\7.jpg"}
But actually this ordering is my expectation
So how to get this list with my ordering by a terse method?
mma
because of I wannt import it intomma
then convenient to following processing $\endgroup$