Skip to content

Commit

Permalink
Mod. on service configuration GET in order to return ordered list of …
Browse files Browse the repository at this point in the history
…items
  • Loading branch information
Agnul97 authored and Coduz committed Feb 3, 2023
1 parent 9913981 commit 72537c5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -61,6 +63,8 @@ public ServiceConfiguration get(@PathParam("scopeId") ScopeId scopeId) throws Ka
serviceConfiguration.getComponentConfigurations().add(serviceComponentConfiguration);
}
}
Collections.sort(serviceConfiguration.getComponentConfigurations(), Comparator.comparing(ServiceComponentConfiguration::getName));

return serviceConfiguration;
}

Expand Down

0 comments on commit 72537c5

Please sign in to comment.