LP#740466 Sort report folders by name
authorMichael Peters <mrpeters@library.in.gov>
Wed, 1 Jun 2011 12:52:57 +0000 (08:52 -0400)
committerDan Scott <dan@coffeecode.net>
Wed, 1 Jun 2011 22:11:05 +0000 (18:11 -0400)
Add order_by to Reporter.pm to sort report folders by name

Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/perlmods/lib/OpenILS/Application/Reporter.pm

index 1cd1e2e..bab1450 100644 (file)
@@ -68,7 +68,11 @@ sub retrieve_visible_folders {
        my $class = 'rrf';
        $class = 'rtf' if $type eq 'template';
        $class = 'rof' if $type eq 'output';
-       my $flesh = {flesh => 1,flesh_fields => { $class => ['owner', 'share_with']}};
+       my $flesh = {
+               flesh => 1,
+               flesh_fields => { $class => ['owner', 'share_with']}, 
+               order_by => { $class => 'name ASC'} 
+       };
 
        my $meth = "search_reporter_${type}_folder";
        my $fs = $e->$meth( [{ owner => $e->requestor->id }, $flesh] );