Fixed sorting code for latest CSV.