Small optimization for showing the sorting selection
Merge pull request #2221 from GeertDD/sorting-optimization

Small optimization for showing the sorting selection