refactoring qproxymodel sorts