fix grid sort in preview state