diff --git a/archiva-modules/archiva-database/src/main/java/org/apache/maven/archiva/database/browsing/DefaultRepositoryBrowsing.java b/archiva-modules/archiva-database/src/main/java/org/apache/maven/archiva/database/browsing/DefaultRepositoryBrowsing.java index 144f8c44f..888bf4726 100644 --- a/archiva-modules/archiva-database/src/main/java/org/apache/maven/archiva/database/browsing/DefaultRepositoryBrowsing.java +++ b/archiva-modules/archiva-database/src/main/java/org/apache/maven/archiva/database/browsing/DefaultRepositoryBrowsing.java @@ -343,7 +343,6 @@ public class DefaultRepositoryBrowsing { final List versions = (List) dao.query( new UniqueVersionConstraint( groupId, artifactId ) ); Collections.sort( versions ); - Collections.reverse( versions ); for ( String uniqueVersion : versions ) { diff --git a/archiva-modules/archiva-database/src/test/java/org/apache/maven/archiva/database/browsing/RepositoryBrowsingTest.java b/archiva-modules/archiva-database/src/test/java/org/apache/maven/archiva/database/browsing/RepositoryBrowsingTest.java index 1a6600a8c..f1e10bf5a 100644 --- a/archiva-modules/archiva-database/src/test/java/org/apache/maven/archiva/database/browsing/RepositoryBrowsingTest.java +++ b/archiva-modules/archiva-database/src/test/java/org/apache/maven/archiva/database/browsing/RepositoryBrowsingTest.java @@ -189,7 +189,7 @@ public class RepositoryBrowsingTest assertNotNull( "Artifact should not be null.", artifact ); assertEquals( "org.apache.archiva", artifact.getGroupId() ); assertEquals( "archiva-indexer", artifact.getArtifactId() ); - assertEquals( "1.0-20070522.143249-1", artifact.getVersion() ); + assertEquals( "1.0-20070522.153141-2", artifact.getVersion() ); assertEquals( "jar", artifact.getPackaging() ); String repoId = browser.getRepositoryId( USER_GUEST, GUEST_REPO_IDS, "org.apache.archiva", "archiva-indexer", "1.0-SNAPSHOT" );