Improve API docs concerning sort behavior

This commit is contained in:
Matthias Kuhn 2018-10-01 11:12:30 +02:00 committed by Nyall Dawson
parent a58d8d5411
commit 66f2272be0
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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 );