to sort items in candidates/index