Class: qgsVariantLessThan

class qgis.core.qgsVariantLessThan(lhs: Any, rhs: Any) → bool

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 also

qgsVariantGreaterThan()

Enums

Methods

Signals

Attributes