It is possible to sort data in the grid via the sort() method of data collection.