I read the manual before posting. I already tried -k but it's still not sorting the way I want it to. There's always either 1 or 2 of the lines that are not sorted in the correct order. I have 6 columns (fields) in the timetable (index, month, date, year, departure, destination). If I type: sort +3 -4 -n +1 -2 -bM then I get 2 lines incorrectly placed in the sort & the monthly sort starts at March instead of January. It doesn't make any sense to me why it's sorting in this way. If I type: sort -k 4,5 -n -k 2,3 -bM I get the same result.
|