"Kalyanramu Vemishetty" <[EMAIL PROTECTED]> said: >Then using the sorting of sortings, I get >data1.dat, data11.dat,data12.dat,data2.dat,data3.dat. >But the result I want is >data1.dat,data2.dat,data3.dat,data11.dat,data12.dat.
The solutions already mentioned will work fine if the 'data' bit of the filenames is always the same (at least for each group of files you want to sort), but if this varies as well then you have a bit more of a challenge. There's a wonderful, free extension for classic Mac OS called Natural Order that modifies the Mac's sorting routines to work exactly the way you're looking for. You could try contacting the author, Stuart Cheshire, for details of the algorithm - his web page says this can be included in other products as long as it's credited. http://www.naturalordersort.org/ Dr Tom Hawkins High Throughput Screening Analyst, Associated Octel ltd PO Box 17, Ellesmere Port, Cheshire CH65 4HF, UK +44 (0)151 355 3611 [EMAIL PROTECTED] ----------------------------------------- Email provided by http://www.ntlhome.com/
