Skip to content

Commit

Permalink
Sort Promotion By Number
Browse files Browse the repository at this point in the history
Instead of sorting promotions by id (e.g. #42), sorts promotions by number (e.g. 42). Fixes the display of the promotion list history for a job.
[FIXED JENKINS-31908]
  • Loading branch information
bbaumann committed Dec 4, 2015
1 parent e695d69 commit 13c3a19
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -368,7 +368,7 @@ private boolean preBuild(BuildListener listener, List<BuildStep> steps) {

@Override
public int compareTo(Promotion that) {
return that.getId().compareTo( this.getId() );
return Integer.compare(that.getNumber(),this.getNumber());
}

@Override
Expand Down

0 comments on commit 13c3a19

Please sign in to comment.