Order the tiles 1 → N with the gap last.
Click a tile next to the gap, or use the arrow keys to slide the tiles in that direction.