implemented bubble-sort to sort results into ascending order
bubblesort is now case-insensitive