Fixed bug with ordering of tiles

The OS won't necessarily return them in order.