aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin/lxr
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2007-12-12 11:57:18 +0100
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2007-12-12 11:57:18 +0100
commit42deb3c4599e745d9000b5684b408e02ddce987a (patch)
tree8735d2571e59cab71bc56cb154bb994032148235 /cgi-bin/lxr
parent1379bdb6e5b40d205ba92fc1a3747d70094a05d9 (diff)
Sort ident searches the right way around, make sure local/member var results don't drown out more significant hits when limit kicks in.
Diffstat (limited to 'cgi-bin/lxr')
-rwxr-xr-xcgi-bin/lxr4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi-bin/lxr b/cgi-bin/lxr
index 719bf96..b134738 100755
--- a/cgi-bin/lxr
+++ b/cgi-bin/lxr
@@ -339,8 +339,8 @@ sub search {
$ver, $find);
my @cooked = (map { $$_[1] = ucfirst($LXRng::Lang::deftypes{$$_[1]});
$_ }
- sort { $LXRng::Lang::defweight{$$a[1]} cmp
- $LXRng::Lang::defweight{$$b[1]} ||
+ sort { $LXRng::Lang::defweight{$$b[1]} cmp
+ $LXRng::Lang::defweight{$$a[1]} ||
$$a[2] cmp $$b[2] ||
$$a[3] <=> $$b[3] }
@$result);