Skip to content
Snippets Groups Projects
Commit 9f47f2f8 authored by Dennis Lundberg's avatar Dennis Lundberg
Browse files

[MCHANGELOG-50] Changes are not sorted by date properly

Submitted by: Fabrice Bellingard

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changelog-plugin@463930 13f79535-47bb-0310-9956-ffa450edef68
parent f5095bee
No related branches found
Tags
No related merge requests found
......@@ -916,7 +916,8 @@ public class ChangeLogReport
initReportUrls();
Collections.sort( new ArrayList( entries ), new Comparator()
List sortedEntries = new ArrayList(entries);
Collections.sort( sortedEntries, new Comparator()
{
public int compare( Object arg0, Object arg1 )
{
......@@ -926,7 +927,7 @@ public class ChangeLogReport
}
} );
for ( Iterator i = entries.iterator(); i.hasNext(); )
for ( Iterator i = sortedEntries.iterator(); i.hasNext(); )
{
ChangeSet entry = (ChangeSet) i.next();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment