#include <vector>
#include <functional>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
using std::vector;
vector<int> vInts;
vInts.push_back(4);
vInts.push_back(2);
vInts.push_back(3);
vInts.push_back(1);
//降序排序
//sort(vInts.begin(), vInts.end(),greater<int>());
//升序排序
sort(vInts.begin(), vInts.end(),less<int>());
for ( int i=0; i<4; i++ )
printf("%d\n",vInts[i]);
return 0;
}