I have a file with a lot of records with 2 filelds each (line by line). example: yaniv : 12 asaf : 44 lui : 09 yaniv : 33 ...

I want to sort the file with column 1 as the primary key and column 2 as the secondary key. How can I do this efficiently ? (I'm using perl under windows so I can't use the unix-sort-function that working great ...)