Sorting a Range of Lines
Qedit has a command, Lsort, for sorting a range of lines.
/lsort all /lsort 1/10 /lsortq 1/10 /lsort all key 1 10 desc /lsort 40/last key 1 10 20 5
By default, the command uses the entire line as the sort key, sorts in ascending order, and prints the sorted lines. Use the KEY option to specify up to four explicit sort keys, use the DESC keyword to sort in descending order, and use LsortQ to sort without printing.