improve file sort order

this improves sort order for files when you have dir listings like:
2013-05-05.txt
2013-05-04.txt
2013-05-03.txt
2013-05-02.txt
2013-05-01.txt
2013-04-30.txt
2013-04-29.txt