Use leading zeros for your numbering. Make your file names: data01.dat data03.dat data11.dat data02.dat data12.dat
Your sorting will work correctly then. Kelly Bersch Senior Technician Anadigm Telephone: 480-344-5262 Email: [EMAIL PROTECTED] http://www.Anadigm.com Anadigm - The Programmable Analog Company -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kalyanramu Vemishetty Sent: Thursday, 11 March, 2004 10:05 AM To: [EMAIL PROTECTED] Subject: Sorting 1d array of alphanumeric strings Hi all, I am working on an application which involves sorting of filenames. The problem I am facing is that, If I have filenames such as data1.dat data3.dat data11.dat data2.dat data12.dat 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. I undertand why I get the result(because we are comparing strings. But inorder to get the result as I want what should I do. What would be the quickfix for this problem in LabVIEW. Any help would be appreciated. Thanks, Kalyan