Sorting a vector

How do you sort a vector?

using sort function
vector< int > v;
sort(v.begin(),v.end());

look at this code

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like :heart:: and don’t forgot to mark doubt as resolved :grinning: