Builtin sort in vector

code : https://ide.codingblocks.com/s/249302

in line number 6, i am not getting how the vector sort function is made like its syntax [ ](vector &a, vector &b)

this is from leetcode day 3 june challenge

Hey,can you please send the source code?


I have added a better way to sort vector.You can use it for any type.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.