added org name sorting to org list retrieval
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Jan 2008 16:30:52 +0000 (16:30 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Jan 2008 16:30:52 +0000 (16:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8481 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/org_tree_js.pl

index fab85fa..a867650 100644 (file)
@@ -24,8 +24,12 @@ $cache->delete_cache('orgtree');
 
 # fetch the org_unit's and org_unit_type's
 my $e = OpenILS::Utils::CStoreEditor->new;
-my $tree = $e->retrieve_all_actor_org_unit;
 my $types = $e->retrieve_all_actor_org_unit_type;
+my $tree = $e->request(
+    'open-ils.cstore.direct.actor.org_unit.search.atomic',
+    {id => {"!=" => undef}},
+    {order_by => {aou => 'name'}}
+);
 
 
 sub val {