Adjusted sort method on Grid component