In vim you can sort all lines by reverse numerics using the command:
:sort! n