This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kameleon.git


The following commit(s) were added to refs/heads/main by this push:
     new f89e8ad  Sort kamelets in the list
f89e8ad is described below

commit f89e8ad0681f55bbc6986965932e44ff8a5a3580
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Aug 6 09:51:49 2022 +0200

    Sort kamelets in the list
---
 .../org/apache/camel/kameleon/component/KameletComponentService.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
 
b/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
index 4ba44ee..932fb16 100644
--- 
a/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
+++ 
b/src/main/java/org/apache/camel/kameleon/component/KameletComponentService.java
@@ -39,7 +39,7 @@ public class KameletComponentService {
                         
List.of(e.getValue().getMetadata().getLabels().get("camel.apache.org/kamelet.type")),
                         
e.getValue().getMetadata().getAnnotations().get("camel.apache.org/kamelet.group"),
                         
e.getValue().getMetadata().getAnnotations().get("camel.apache.org/kamelet.icon")
-                )).collect(Collectors.toList());
+                )).sorted((o1, o2) -> 
o1.getName().compareToIgnoreCase(o2.getName())).collect(Collectors.toList());
         return new JsonArray(list);
     }
 }

Reply via email to