To do this, you can use the Unix sort utility as follows:
sort +0 -1 -n -r < sh2.scan > sh2.sorted
If you want to understand what the +0 -1 -n -r means, please consult the Unix sort man pages (i.e. type: man sort). The sort is very quick.
You can avoid saving the sh2.scan file by piping the output of scanps directly into sort. For example:
scanps -ssh2.seq | sort +0 -1 -n -r > sh2.sorted