am facut un script perl pt asta ... in caz ca cineva are nevoie pe viitor ... #!/usr/bin/perl $infile = $ARGV[0]; if (!-e $infile){ $infile = "unsorted.csv"; }; open (IN, "<$infile"); @RAW){ $curline =~ s/\n//g; @pieces = split(",", $curline); $id = substr($pieces[1], 2); $tmphash{$id} = $curline; }; foreach $key (sort {$a <=> $b} keys %tmphash){ print $tmphash{$key} . "\n"; }; executati perl script.pl unsorted.csv > sorted.csv