In the video there was a function comparator as well as in the function bubble_sort() we passed the comparator function as bool (&cmp)
I didn’t understand how the function we added inside the bubble_sort (&cmp) could call the function compare() since the name is different.