added sort of names in candidate pull-down menu