Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sort vector in descending order

sort(a.begin(), a.end(), greater<int>());
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #sort #vector #descending #order
ADD COMMENT
Topic
Name
1+4 =