ReneMiner
03-11-2015, 13:29
If i do some
Array Sort ..., AsFiles
(see images, check filelist low-left)
on a string-array (that contains filenames) it does not ignore LCase/Ucase but sorts the filenames starting with UCase-chars, thereafter follow the filenames starting with LCase-chars in most cases.
Sometimes it does not even follow that rule but messes up the order completely. (image 2, where i sort standard previously and then AsFiles)
I found out that it sorts by LENGTH if using Ascend or Descend
Is there a way to simply sort by alphabet - no matter if UCase or LCase-char?
( Collate Ucase ??? ;) )
Another example:
Help says
A standard order would sort the above list in the following way
While using ASFILES it will sort considering the numeric part be a number
Picture1.jpg
Picture10.jpg
Picture11.jpg
Picture12.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
Picture5.jpg
Picture6.jpg
Picture7.jpg
Picture8.jpg
Picture9.jpg
Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
Picture5.jpg
Picture6.jpg
Picture7.jpg
Picture8.jpg
Picture9.jpg
Picture10.jpg
Picture11.jpg
Picture12.jpg
but in case one filename (or common string) starts with a lower-case "p" it will get sorted to the end mostly.
Array Sort ..., AsFiles
(see images, check filelist low-left)
on a string-array (that contains filenames) it does not ignore LCase/Ucase but sorts the filenames starting with UCase-chars, thereafter follow the filenames starting with LCase-chars in most cases.
Sometimes it does not even follow that rule but messes up the order completely. (image 2, where i sort standard previously and then AsFiles)
I found out that it sorts by LENGTH if using Ascend or Descend
Is there a way to simply sort by alphabet - no matter if UCase or LCase-char?
( Collate Ucase ??? ;) )
Another example:
Help says
A standard order would sort the above list in the following way
While using ASFILES it will sort considering the numeric part be a number
Picture1.jpg
Picture10.jpg
Picture11.jpg
Picture12.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
Picture5.jpg
Picture6.jpg
Picture7.jpg
Picture8.jpg
Picture9.jpg
Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
Picture5.jpg
Picture6.jpg
Picture7.jpg
Picture8.jpg
Picture9.jpg
Picture10.jpg
Picture11.jpg
Picture12.jpg
but in case one filename (or common string) starts with a lower-case "p" it will get sorted to the end mostly.