added sort procs as constants