Comparator function (STL)

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.

this is because we are not calling function here we are accepting function from main
in main() it should be compare() (here name is correct)
here we are pass function by refrence
as we done for variable
variable name may be different in main and in function parameter in the same way function name may vary for functions

I get it now , thank you