commit | 80ef5ce7bcb8fe169ed4fd7f94e81d7e8ab8c2e6 | [log] [tgz] |
---|---|---|
author | LaMont Jones <lamontjones@google.com> | Thu May 09 15:24:27 2024 -0700 |
committer | LaMont Jones <lamontjones@google.com> | Thu May 09 15:33:13 2024 -0700 |
tree | fbc64f280c753d87d956114b323f26ef59ecf7e4 | |
parent | 7b48992a1a52e8b7679ba49a2f5c1104ce408b1d [diff] |
sort _all_release_configs variable before we write it Bug: 339707888 Test: manual, TH Change-Id: Icbf9a8f84a62b60469ed636f69818c9179d2ddf6
diff --git a/cmd/release_config/release_config_lib/release_configs.go b/cmd/release_config/release_config_lib/release_configs.go index 8a4e2d5..2487f2e 100644 --- a/cmd/release_config/release_config_lib/release_configs.go +++ b/cmd/release_config/release_config_lib/release_configs.go
@@ -291,6 +291,9 @@ allReleaseNames = append(allReleaseNames, v.Name) allReleaseNames = append(allReleaseNames, v.OtherNames...) } + slices.SortFunc(allReleaseNames, func(a, b string) int { + return cmp.Compare(a, b) + }) config, err := configs.GetReleaseConfig(targetRelease) if err != nil { return err