add sort dir for linux system, add isLoeded function body
moved sort() after listDir
move function body to cpp
Merge pull request #5 from fishkingsin/master

added sort function after listDir for Linux system