Changed MapReader so entities are sorted by y and then x.