Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improved ordering of services list [backport release-5.6.0] #5577

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others
* Copyright (c) 2011, 2024 Eurotech and/or its affiliates and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -686,8 +686,8 @@ private void filterByServiceName(String tmpServiceName) {
private void sortConfigurationsByName(List<GwtConfigComponent> configs) {
Collections.sort(configs, (arg0, arg1) -> {
String name0;
String pid0 = arg0.getComponentId();
String pid1 = arg1.getComponentId();
String pid0 = arg0.getComponentId().toLowerCase();
String pid1 = arg1.getComponentId().toLowerCase();
int start = pid0.lastIndexOf('.');
int substringIndex = start + 1;
if (start != -1 && substringIndex < pid0.length()) {
Expand All @@ -704,6 +704,7 @@ private void sortConfigurationsByName(List<GwtConfigComponent> configs) {
} else {
name1 = pid1;
}

return name0.compareTo(name1);
});
}
Expand Down
Loading