Repository: quarkusio/quarkus
Issue: CLI commands and sub-commands are listed sort of randomly in help message

### Describe the bug

CLI commands and sub-commands are listed sort of randomly in help message.

For example `extension` and `registry` have add / list / remove sub-commands but they are listed in different order.

Maybe everything should be alphabetically ordered for simplicity or at least the same sub-commands should have the same order in help

```
qss --help
...
Commands:
  create                  Create a new project.
    app                   Create a Quarkus application project.
    cli                   Create a Quarkus command-line project.
    extension             Create a Quarkus extension project
  build                   Build the current project.
  dev                     Run the current project in dev (live coding) mode.
  extension, ext          Configure extensions of an existing project.
    list, ls              List platforms and extensions.
    categories, cat       List extension categories.
    add                   Add extension(s) to this project.
    remove, rm            Remove extension(s) from this project.
  registry                Configure Quarkus registry client
    add                   Add a Quarkus extension registry
    list                  List enabled Quarkus registries
    remove                Remove a Quarkus extension registry
  version                 Display version information.
  completion              bash/zsh completion:  source <(quarkus completion)
```

### Expected behavior

Commands and sub-commands should be alphabetically ordered or at least to have some consistency in ordering for sub-commands with the same name

### Actual behavior

CLI commands and sub-commands are listed sort of randomly in help message

### How to Reproduce?

`qss --help`

### Output of `uname -a` or `ver`

macOS BigSur

### Output of `java -version`

Java 11

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

main

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

_No response_

### Additional information

_No response_

Changed files:
devtools/cli/src/main/java/io/quarkus/cli/Registry.java, devtools/cli/src/main/java/io/quarkus/cli/ProjectExtensions.java

diff --git a/devtools/cli/src/main/java/io/quarkus/cli/ProjectExtensions.java b/devtools/cli/src/main/java/io/quarkus/cli/ProjectExtensions.java
index a166379e57d..f246f4f4715 100644
--- a/devtools/cli/src/main/java/io/quarkus/cli/ProjectExtensions.java
+++ b/devtools/cli/src/main/java/io/quarkus/cli/ProjectExtensions.java
@@ -11,7 +11,8 @@
 
 @CommandLine.Command(name = "extension", aliases = {
         "ext" }, sortOptions = false, mixinStandardHelpOptions = false, header = "Configure extensions of an existing project.", subcommands = {
-                ProjectExtensionsList.class, ProjectExtensionsCategories.class,
+                ProjectExtensionsList.class,
+                ProjectExtensionsCategories.class,
                 ProjectExtensionsAdd.class,
                 ProjectExtensionsRemove.class }, headerHeading = "%n", commandListHeading = "%nCommands:%n", synopsisHeading = "%nUsage: ", optionListHeading = "Options:%n")
 public class ProjectExtensions extends BaseBuildCommand implements Callable<Integer> {
diff --git a/devtools/cli/src/main/java/io/quarkus/cli/Registry.java b/devtools/cli/src/main/java/io/quarkus/cli/Registry.java
index d46ec57f0a2..88749ccbe7f 100644
--- a/devtools/cli/src/main/java/io/quarkus/cli/Registry.java
+++ b/devtools/cli/src/main/java/io/quarkus/cli/Registry.java
@@ -8,8 +8,8 @@
 import picocli.CommandLine.Unmatched;
 
 @CommandLine.Command(name = "registry", sortOptions = false, mixinStandardHelpOptions = false, header = "Configure Quarkus registry client", subcommands = {
-        RegistryAddCommand.class,
         RegistryListCommand.class,
+        RegistryAddCommand.class,
         RegistryRemoveCommand.class }, headerHeading = "%n", commandListHeading = "%nCommands:%n", synopsisHeading = "%nUsage: ", optionListHeading = "%nOptions:%n")
 public class Registry extends BaseRegistryCommand {