Hi,
I have an array with following type of content
ABC,Project1,file1.c,0.7,location1
ABC,Project1,file1.c,0.25,location1
ABC,Project1,file1.c,0.2,location1
ABC,Project1,file2.c,0.6,location2
CDE,Project1,atest1.txt,1.0,location3
ABC,Project1,file1.c,3.2,location1
ABC,Project1,file2.c,0.2,location2
ABC,Project1,file1.c,0.1,location1
The items marked in red in each line is the version number of all respective files ..
Now I need to sort it first by Project/file name ie (ABC,Project1,file1.c) and then by their versions . So I can have an output like this
ABC,Project1,file1.c,0.1,location1
ABC,Project1,file1.c,0.2,location1
ABC,Project1,file1.c,0.25,location1
ABC,Project1,file1.c,0.7,location1
ABC,Project1,file1.c,3.2,location1
ABC,Project1,file2.c,0.2,location2
ABC,Project1,file2.c,0.6,location2
CDE,Project1,atest1.txt,1.0,location3
The sort function will sort it as a string , but how do I sort each file name by their versions ..
Thanks in advance for the help
Maxmelbin Neson
-----------------------------------------------------------------------------------------------------------------
Robert Bosch India Limited
Engineering Services - DS - Methods and Tools (RBIN/EDM3)
123 Industrial Layout - Hosur Road - Bangalore 560 095 - INDIA
Telephone: +91 80 5119-4532 Fax: +91 80 2508-1404
[EMAIL PROTECTED]
www.bosch.com
"Reputation is what men and women think of us; character is what God and angels know of us."
-Thomas Paine
_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
