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

Also remove `$realpath` stuff from `_list()` since it's not used anymore.
These tests seem to be three independent test cases. I would prefer if they were in different methods.