Adds comparator for bubble sort