sort order improvments