Add grid sorting.