sort by file name
correct sorting function