You could use some kind of table/chart structure, if you do not put nick / address / IP etc on separate lines but separate the "cells" with a char that may not be part of nicks/addresses/IPs/emails, like $chr(9) = TAB or $chr(160) = hardspace. Now, if you create a "dataset" like:

nick1<SEP>address1<SEP>IP1<SEP>mail1
nick2<SEP>address2<SEP>IP2<SEP>mail2
nick3<SEP>address3<SEP>IP3<SEP>mail3
nick4<SEP>address4<SEP>IP4<SEP>mail4

...you can now apply the powerfull /filter command, to sort your table/dataset by any "collumn", ascending or descending, numerically or alphanumerically...

For example, if your <SEP> had been $chr(9), sorting the table acc. to third collumn would be: "/filter -ffct 3 9 file.txt file.txt"

Add "heading lines", runtime etc. after sorting the data, for example with /write -i.