sort for grid (doctrine)