fix sorting as mentioned in #33, #113 and #131
Merge pull request #173 from webjay/master

Fix natural sorting