projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8862968
)
Show core modules first
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 31 Dec 2007 04:18:37 +0000
(
04:18
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 31 Dec 2007 04:18:37 +0000
(
04:18
+0000)
webmin_search.cgi
patch
|
blob
|
history
diff --git
a/webmin_search.cgi
b/webmin_search.cgi
index
f110cef
..
3c617a6
100644
(file)
--- a/
webmin_search.cgi
+++ b/
webmin_search.cgi
@@
-19,7
+19,8
@@
$re =~ s/\s+$//;
# Search module names first
$count = 0;
-@mods = grep { !$_->{'clone'} } &get_available_module_infos();
+@mods = sort { $b->{'longdesc'} cmp $a->{'longdesc'} }
+ grep { !$_->{'clone'} } &get_available_module_infos();
foreach $m (@mods) {
if ($m->{'desc'} =~ /\Q$re\E/i || $m->{'dir'} =~ /\Q$re\E/i) {
&match_row(