Permalink
Browse files

cat insensitive sorting for JENKINS-34047

  • Loading branch information...
michaelneale committed Apr 6, 2016
1 parent 3425908 commit d91fd623c2e3c7177a3bb8c69254ea96628f7def
Showing with 7 additions and 9 deletions.
  1. +7 −9 src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
@@ -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;

@@ -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) {

0 comments on commit d91fd62

Please sign in to comment.