refactoring sorting default, removing duplicate XSLT