added two other sorting functions to go along with the sorting options