Skip to content

Commit

Permalink
cat insensitive sorting for JENKINS-34047
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Apr 6, 2016
1 parent 3425908 commit d91fd62
Showing 1 changed file with 7 additions and 9 deletions.
Expand Up @@ -69,14 +69,7 @@
import javax.net.ssl.SSLHandshakeException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;

Expand Down Expand Up @@ -496,7 +489,12 @@ public ListBoxModel doFillScanCredentialsIdItems(@AncestorInPath SCMSourceOwner

public ListBoxModel doFillRepositoryItems(@AncestorInPath SCMSourceOwner context, @QueryParameter String apiUri,
@QueryParameter String scanCredentialsId, @QueryParameter String repoOwner) {
Set<String> result = new TreeSet<>();
Set<String> result = new TreeSet<>(new Comparator<String>() {
@Override
public int compare(String s1, String s2) {
return s1.compareToIgnoreCase(s2);
}
});

repoOwner = Util.fixEmptyAndTrim(repoOwner);
if (repoOwner == null) {
Expand Down

0 comments on commit d91fd62

Please sign in to comment.