Skip to content

Commit

Permalink
FORGE-2316: Fixed comparator order
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jan 12, 2016
1 parent b2982fa commit 7459c76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public class StackFacetComparator implements Comparator<StackFacet>
@Override
public int compare(StackFacet o1, StackFacet o2)
{
int result = o1.priority() - o2.priority();
int result = o2.priority() - o1.priority();
if (result == 0)
{
result = o1.getStack().getName().compareTo(o2.getStack().getName());
result = o2.getStack().getName().compareTo(o1.getStack().getName());
}
return result;
}
Expand Down

0 comments on commit 7459c76

Please sign in to comment.