Refactored the sortBy projection to be a real instance