Change mapstat table to introduce a stable ordering.

Our placement of pseudo-random dots inside each 100x100m tile depends
on a stable ordering of both the input data and the random generator.
Otherwise all tiles will always be different on each generation.