Acutally i have 10 good scores:
23 5 87 29 87 0 100 55 33 23

how can i sort good score in ascendant order(samll to large)

here is my code:

Code:
void soreScores(ofstream& outdata, int listThree[])
{
	int counter;
	int x = 0;

	outdata << "Sorted good scores:";
	outdata << endl;
	 
	for (counter = 0; counter < 10; counter++)
	{
		if (listThree[x] <= listThree[counter])
		{
			listThree[x] = listThree[counter];
			outdata << setw(4) <<listThree[x];
		}
	}
}