[#493] Grid sorting