record sort performance fix