using the sort command sort -k 2 -g file -k for field selection -g compare according to numerical value