summaryrefslogtreecommitdiffstats
path: root/src/chartsqml2/declarativecategoryaxis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chartsqml2/declarativecategoryaxis.cpp')
-rw-r--r--src/chartsqml2/declarativecategoryaxis.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chartsqml2/declarativecategoryaxis.cpp b/src/chartsqml2/declarativecategoryaxis.cpp
index bf6afa58..1b1826fd 100644
--- a/src/chartsqml2/declarativecategoryaxis.cpp
+++ b/src/chartsqml2/declarativecategoryaxis.cpp
@@ -30,6 +30,8 @@
#include "declarativecategoryaxis_p.h"
#include <QtCore/QDebug>
+#include <algorithm>
+
QT_CHARTS_BEGIN_NAMESPACE
/*!
@@ -83,7 +85,7 @@ void DeclarativeCategoryAxis::componentComplete()
}
// Sort and append the range objects according to end value
- qSort(ranges.begin(), ranges.end(), endValueLessThan);
+ std::sort(ranges.begin(), ranges.end(), endValueLessThan);
for (int i(0); i < ranges.count(); i++)
append(ranges.at(i).first, ranges.at(i).second);
}