We have to sort the grid