Use priority to sort exercises