last resort sort: alpha!

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=810606
This commit is contained in:
Aaron J. Seigo 2008-05-21 05:18:30 +00:00
parent a02a089e67
commit 6b756dc236

View File

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