always sort first by filename, for more accurate results