SFTP: add the ability for nlist() and rawlist() to be sorted

Also remove `$realpath` stuff from `_list()` since it's not used anymore.
The idea of this file was to have a linear story that is executed top-down due to SFTP's side effects and because that is just very easy to understand.