getCollections() now sorts by collection name

git-svn-id: http://scm.dspace.org/svn/repo/trunk@412 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
David Stuve
2002-09-26 16:05:56 +00:00
parent d63039e547
commit 6043bcc63b

View File

@@ -83,7 +83,6 @@ public class Community implements DSpaceObject
/** The logo bitstream */ /** The logo bitstream */
private Bitstream logo; private Bitstream logo;
/** /**
* Construct a community object from a database row. * Construct a community object from a database row.
* *
@@ -382,7 +381,8 @@ public class Community implements DSpaceObject
"collection", "collection",
"SELECT collection.* FROM collection, community2collection WHERE " + "SELECT collection.* FROM collection, community2collection WHERE " +
"community2collection.collection_id=collection.collection_id " + "community2collection.collection_id=collection.collection_id " +
"AND community2collection.community_id=" + getID() + ";"); "AND community2collection.community_id=" + getID() +
" ORDER BY collection.name" );
// Make Collection objects // Make Collection objects
while (tri.hasNext()) while (tri.hasNext())