Add sorting to SQL select (RepClubRival, RepTeamMatch).