total_day_wind
looks like either a
float
or
double
to me. It's a bit trivial to sort a single value...
If you've got a collection of wind speeds somewhere and you want to sort them into ascending order then use std::sort:
std::vector<double> wind_speeds;
std::sort( wind_speeds.begin(), wind_speeds.end() );
Cheers,
Ash
Edited as yet again I forgot to escape angle brackets