Package: lxr-cvs
Version: 0.9.5+cvs20071020-1
Severity: wishlist
Tags: patch upstream
Hi,
it'd be nice if the references on the identifier search results page could be
sorted also by lines and not only by files. Please find attached a patch to do
so.
I'm also mailing upstream through X-Debbugs-Cc.
Cheers,
--
Cyril Brulebois
--- a/ident
+++ b/ident
@@ -89,7 +91,7 @@ sub usesexpand {
my @uses = $index->getreference($identifier, $release);
my $file_hits = 0;
my $last_file;
- foreach my $ref (sort { $$a[0] cmp $$b[0] } @uses) {
+ foreach my $ref (sort { $$a[0] cmp $$b[0] || $$a[1] cmp $$b[1] } @uses)
{
my ($file, $line) = @$ref;
$file_hits++ if $file ne $last_file;
$last_file = $file;