I have a text file containing ~300k rows. Each row has a varying number of comma-delimited fields, the last of which is guaranteed numerical. I want to sort the file by this
vim file.in -c '%sort n /.*,\zs/' -c 'saveas file.out' -c 'q'