Fix for column sorting in grid

This fixes the failing sort in grid