Added getSortFields function to Runs and modified routes slightly