Added priority sort to uthread_create.