last resort sort: alpha!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810606
This commit is contained in:
parent
a02a089e67
commit
6b756dc236
@ -179,7 +179,13 @@ bool QueryMatch::operator<(const QueryMatch& other) const
|
|||||||
return other.isEnabled();
|
return other.isEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
return d->relevance < other.d->relevance;
|
if (d->relevance != other.d->relevance) {
|
||||||
|
return d->relevance < other.d->relevance;
|
||||||
|
}
|
||||||
|
|
||||||
|
// when resorting to sort by alpha, we want the
|
||||||
|
// reverse sort order!
|
||||||
|
return d->text > other.d->text;
|
||||||
}
|
}
|
||||||
|
|
||||||
return d->type < other.d->type;
|
return d->type < other.d->type;
|
||||||
|
Loading…
Reference in New Issue
Block a user