Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve API docs concerning sort behavior
  • Loading branch information
m-kuhn authored and nyalldawson committed Oct 2, 2018
1 parent a58d8d5 commit 66f2272
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/auto_generated/qgis.sip.in
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions src/core/qgis.h
Expand Up @@ -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 );
Expand Down

0 comments on commit 66f2272

Please sign in to comment.