Skip to content
Permalink
Browse files

Nicer sorting of ellipsoid defs

  • Loading branch information
nyalldawson committed Mar 27, 2019
1 parent edd84e9 commit 6e57bfa8452fdaa9a4f9a60e1f0606433e1dfcdd
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsellipsoidutils.cpp
@@ -263,6 +263,12 @@ QList<QgsEllipsoidUtils::EllipsoidDefinition> QgsEllipsoidUtils::definitions()

#endif

QCollator collator;
collator.setCaseSensitivity( Qt::CaseInsensitive );
std::sort( defs.begin(), defs.end(), [&collator]( const EllipsoidDefinition & a, const EllipsoidDefinition & b )
{
return collator.compare( a.acronym, b.acronym ) < 0;
} );
sDefinitionCache = defs;
sDefinitionCacheLock.unlock();

0 comments on commit 6e57bfa

Please sign in to comment.
You can’t perform that action at this time.