changed sortOrder to sortBy