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

Also remove `$realpath` stuff from `_list()` since it's not used anymore.
Errm yeah, I missed this in the diff. Sorry.