summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e19096)
The initial search results retrieved from the database already come
preordered, either by importnace or by distance. We want to keep
that order if all other things are equal.
if ($a['importance'] != $b['importance'])
return ($a['importance'] > $b['importance']?-1:1);
if ($a['importance'] != $b['importance'])
return ($a['importance'] > $b['importance']?-1:1);
- return ($a['foundorder'] < $b['foundorder']?-1:1);
+ return $a['foundorder'] <=> $b['foundorder'];