More workon the grid buider including the new sorting functionality