Home
C++
Bitset
Class
Console
Data Structure
Data Type
Deque
Development
File
Function
Generic
Language
List
Map Multimap
Overload
Pointer
Qt
Queue Stack
Set Multiset
STL Algorithms Binary search
STL Algorithms Heap
STL Algorithms Helper
STL Algorithms Iterator
STL Algorithms Merge
STL Algorithms Min Max
STL Algorithms Modifying sequence operations
STL Algorithms Non modifying sequence operations
STL Algorithms Sorting
STL Basics
String
Valarray
Vector
sort « STL Algorithms Sorting « C++
C++
STL Algorithms Sorting
sort
1.
Using an in-place generic sort algorithm
2.
Sort a vector and print out the sorted elements
3.
Sort all element in an array
4.
Sort part of the elements in an array
5.
Sort a vector into ascending order of id members
6.
Sort elements in deque
7.
Sort elements reversely with custom function
8.
Using the generic sort algorithm with a binary predicate: greater
9.
Use custom function and sort to sort strings by length
10.
Sorting user-defined class
11.
Sort the entire container
12.
Sort into descending order by using greater
13.
Sort a subset of the container
14.
Sort random number
15.
Sort a string array with sort()