How to sort libraries ? issue #52

0 views
Skip to first unread message

Claudio Miranda

unread,
Aug 11, 2009, 10:32:13 AM8/11/09
to dev-ivybeans

I want to sort the libraries as specified on issue #52

Does the code below play anything useful ? I tried to sort it, but
nothing happened

Looking at the source code, class
com.googlecode.ivybeans.module.nodes.ScopeNode.ScopesChildren (inner
class)

line 96
final Collection<ArtifactInfo> artifacts =
resolvedIvyLibrary.getArtifacts();

I did

Collections.sort((List<ArtifactInfo>) artifacts, new
Comparator<ArtifactInfo>() {

public int compare(ArtifactInfo o1, ArtifactInfo o2) {
return o1.getName().compareTo(o2.getName());
}
});

Does anyone have a hint where should I change the code to display the
libraries, sorted by name ?

Thanks

Claudio
Message has been deleted

Claudio Miranda

unread,
Aug 12, 2009, 11:48:04 AM8/12/09
to dev-ivybeans
Just to let people know, the fix is attached to the issue #52
Reply all
Reply to author
Forward
0 new messages