sort by file name
correct sorting function
safer string replacement in comparison
Merge pull request #3 from lainme/master

sort by file name