--- a/src/primitives.cpp Sat Mar 24 11:57:24 2018 +0200 +++ b/src/primitives.cpp Sat Mar 24 12:06:22 2018 +0200 @@ -172,7 +172,7 @@ } // Sort the categories. Note that we only do this here because we needed the original order for pattern matching. - qSort (m_categories.begin(), m_categories.end(), + ::sort(m_categories.begin(), m_categories.end(), [](PrimitiveCategory* const& one, PrimitiveCategory* const& other) -> bool { return one->name() < other->name();