Skip to content
Permalink
Browse files

Improve API docs concerning sort behavior

  • Loading branch information
m-kuhn authored and nyalldawson committed Oct 2, 2018
1 parent a58d8d5 commit 66f2272be03bedbc742f177f59c7ede204366c77
Showing with 5 additions and 0 deletions.
  1. +2 −0 python/core/auto_generated/qgis.sip.in
  2. +3 −0 src/core/qgis.h
@@ -184,6 +184,8 @@ Compares two QVariant values and returns whether the first is less than the seco
Useful for sorting lists of variants, correctly handling sorting of the various
QVariant data types (such as strings, numeric values, dates and times)

Invalid < NULL < Values

.. seealso:: :py:func:`qgsVariantGreaterThan`
%End

@@ -444,6 +444,9 @@ CORE_EXPORT qlonglong qgsPermissiveToLongLong( QString string, bool &ok );
* Compares two QVariant values and returns whether the first is less than the second.
* Useful for sorting lists of variants, correctly handling sorting of the various
* QVariant data types (such as strings, numeric values, dates and times)
*
* Invalid < NULL < Values
*
* \see qgsVariantGreaterThan()
*/
CORE_EXPORT bool qgsVariantLessThan( const QVariant &lhs, const QVariant &rhs );

0 comments on commit 66f2272

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