last resort sort: alpha!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810606
This commit is contained in:
parent
a02a089e67
commit
6b756dc236
@ -179,9 +179,15 @@ bool QueryMatch::operator<(const QueryMatch& other) const
|
||||
return other.isEnabled();
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user