Refactor sort header title resolution