From ef9721811ce58c5bc6af737642a67bc6b996218c Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 18 Sep 2022 01:06:16 -0700 Subject: [PATCH] cmd/license: alphabetize output --- licenses.txt | 28 ++++++++++++++-------------- src/cmd/license.zig | 1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/licenses.txt b/licenses.txt index b03f7e14d01ba3af4d149745066438c999d25409..804027624247c087678744422c84279c377e6859 100644 --- a/licenses.txt +++ b/licenses.txt @@ -2,21 +2,21 @@ MIT: = https://spdx.org/licenses/MIT - This - git https://gist.github.com/nektro/d468fea84f8217e4c26ee8fbeeea38cc -- git https://github.com/yaml/libyaml -- git https://github.com/nektro/zig-extras -- git https://github.com/nektro/zig-range -- git https://github.com/nektro/zig-ansi -- git https://github.com/ziglibs/known-folders -- git https://github.com/nektro/zig-licenses -- git https://github.com/truemedian/zfetch -- git https://github.com/truemedian/hzzp -- git https://github.com/nektro/iguanaTLS - git https://github.com/MasterQ32/zig-uri -- git https://github.com/nektro/zig-json +- git https://github.com/marlersoft/zigwin32 +- git https://github.com/nektro/arqv-ini +- git https://github.com/nektro/iguanaTLS +- git https://github.com/nektro/zig-ansi - git https://github.com/nektro/zig-detect-license -- git https://github.com/nektro/zig-licenses-text -- git https://github.com/nektro/zig-leven +- git https://github.com/nektro/zig-extras - git https://github.com/nektro/zig-inquirer -- git https://github.com/nektro/arqv-ini +- git https://github.com/nektro/zig-json +- git https://github.com/nektro/zig-leven +- git https://github.com/nektro/zig-licenses +- git https://github.com/nektro/zig-licenses-text +- git https://github.com/nektro/zig-range - git https://github.com/nektro/zig-time -- git https://github.com/marlersoft/zigwin32 +- git https://github.com/truemedian/hzzp +- git https://github.com/truemedian/zfetch +- git https://github.com/ziglibs/known-folders +- git https://github.com/yaml/libyaml diff --git a/src/cmd/license.zig b/src/cmd/license.zig index 0bca6aa517b10396f369678af76f32eb039dc1cc..db2c0635c5989c624999ea780fbcdcfd526f5049 100644 --- a/src/cmd/license.zig +++ b/src/cmd/license.zig @@ -29,6 +29,7 @@ pub fn execute(args: [][]u8) !void { var master_list = List.init(gpa); errdefer master_list.deinit(); try common.collect_pkgs(top_module, &master_list); + std.sort.sort(zigmod.Module, master_list.items, {}, zigmod.Module.lessThan); var map = Map.init(gpa); errdefer map.deinit(); -- 2.54.0