Drag the squares to sort. The best approach is to star with the upper left corner then work right.