Grids: Fix forms grid sorting