summaryrefslogtreecommitdiff
path: root/src/powerlist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r--src/powerlist.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/powerlist.cc b/src/powerlist.cc
index 87d6e9f..a0510ad 100644
--- a/src/powerlist.cc
+++ b/src/powerlist.cc
@@ -26,6 +26,7 @@
*/
#include "powerlist.h"
+#include <algorithm>
#include <stdlib.h>
#include <string.h>
@@ -197,6 +198,8 @@ void PowerList::finalise()
DEBUG(rand, " - power: %f\n", item.power);
}
+
+ std::sort(samples.begin(), samples.end());
}
const PowerListItems& PowerList::getPowerListItems() const