Add sort in clientls() function

No longer use opendir and readdir.
Use scandir instead to read in alphanumeric order.