bool valueGreaterThan( const QgsRendererCategoryV2 &c1, const QgsRendererCategoryV2 &c2 ) { return qgsVariantGreaterThan( c1.value(), c2.value() ); }
bool QgsComposerAttributeTableCompareV2::operator()( const QgsComposerTableRow& m1, const QgsComposerTableRow& m2 ) { return ( mAscending ? qgsVariantLessThan( m1[mCurrentSortColumn], m2[mCurrentSortColumn] ) : qgsVariantGreaterThan( m1[mCurrentSortColumn], m2[mCurrentSortColumn] ) ); }
bool operator()( const QPair< QgsFeatureId, QString > &id1, const QPair< QgsFeatureId, QString > &id2 ) { return mAscending ? qgsVariantLessThan( mKeys.value( id1.first ), mKeys.value( id2.first ) ) : qgsVariantGreaterThan( mKeys.value( id1.first ), mKeys.value( id2.first ) ); }