The sort command has a parameter "-t" to declare the fields separator instead of the default blank. For example:
sort -t 'a' file
what if I want to use a non-printable char as the spearator, like the fifth char in ASCII table ?
You can enter a non-printable character in bash (and also in vim) by using ctrl-V and then the non-printable control code. Thus, for character 0x04, Ctrl-V Ctrl-D inserts ^D, which is a representation of the character 0x04.
Press:
sort -t '<ctrl-V><ctrl-D>' file
and this will be displayed:
sort -t '^D' file
imap <C-V>?