Hacker News new | ask | show | jobs
by idoubtit 2457 days ago
`awk` is not needed since `sort` can apply to the fourth column.

    curl ... \
     | sort -t, -k4 -n
     | less
1 comments

That's true, but the solution I suggested works to sort on the last column, whether or not there are exactly 4 columns. I avoided having to count how many columns there are, assuming only that the date comes last.

But yes, if you know the date is in the 4th column then your solution also works.