better file sort

refs #102