only need to sort the cells