Fix bug in sort if grid does not implement it