add sorting support on name and score