Improve tile generation order

Resort the tile queue on redraw so that tiles closer to the center of
the current viewport are generated first.