Sort common local and remote branches in the popup

This commit is contained in:
Kirill Likhodedov
2012-02-13 17:54:45 +04:00
parent 625d182cc0
commit 11a8d966e6
@@ -162,7 +162,15 @@ public class GitMultiRootBranchConfig {
commonLocal.retainAll(GitUtil.getBranchNames(branches));
}
}
return commonLocal != null ? commonLocal : Collections.<String>emptyList();
if (commonLocal != null) {
ArrayList<String> common = new ArrayList<String>(commonLocal);
Collections.sort(common);
return common;
}
else {
return Collections.emptyList();
}
}
@Override