Add a function "sortByName"
Merge pull request #419 from f80/master

Add a function "sortByName"