Add sort in clientls() function

No longer use opendir and readdir.
Use scandir instead to read in alphanumeric order.
Merge pull request #30 from lzhang25/master

Sort in clientls() function(Using scandir () function instead to deal with dir index)