Skip to content

Commit

Permalink
fix: Improved ordering of services list [backport release-5.6.0] (#5577)
Browse files Browse the repository at this point in the history
fix: Improved ordering of services list (#5573)

Signed-off-by: MMaiero <[email protected]>
(cherry picked from commit b94bb84)

Co-authored-by: Matteo Maiero <[email protected]>
  • Loading branch information
eclipse-kura-bot and MMaiero authored Nov 21, 2024
1 parent eca56ed commit 025688e
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit 025688e

Please sign in to comment.