From 6043bcc63bb8fbbdada1be9c56d965b8fb825a5a Mon Sep 17 00:00:00 2001 From: David Stuve Date: Thu, 26 Sep 2002 16:05:56 +0000 Subject: [PATCH] getCollections() now sorts by collection name git-svn-id: http://scm.dspace.org/svn/repo/trunk@412 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- dspace/src/org/dspace/content/Community.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dspace/src/org/dspace/content/Community.java b/dspace/src/org/dspace/content/Community.java index c7b7f1cb95..46c1319d3b 100644 --- a/dspace/src/org/dspace/content/Community.java +++ b/dspace/src/org/dspace/content/Community.java @@ -83,7 +83,6 @@ public class Community implements DSpaceObject /** The logo bitstream */ private Bitstream logo; - /** * Construct a community object from a database row. * @@ -382,7 +381,8 @@ public class Community implements DSpaceObject "collection", "SELECT collection.* FROM collection, community2collection WHERE " + "community2collection.collection_id=collection.collection_id " + - "AND community2collection.community_id=" + getID() + ";"); + "AND community2collection.community_id=" + getID() + + " ORDER BY collection.name" ); // Make Collection objects while (tri.hasNext())