Sort by filename if other methods fail.