[Map Editor] Correctly sort files
[MapEditor] Filter files before sorting

Filtering the files before sorting them is a lot better. The file
listing of the map editor should work a lot faster now for large
directories.