alternative fix for #80 where we sort the data rather than update the grid metadata