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

Also remove `$realpath` stuff from `_list()` since it's not used anymore.
Keep the newline