From ec68314102f9b1d15bd0a3339aa7207fbcb978d0 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 8 Jul 2024 06:53:21 -0500 Subject: [PATCH] sort packages --- pkgs/oizys/internal/oizys/display.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/oizys/internal/oizys/display.go b/pkgs/oizys/internal/oizys/display.go index 5e454a2..37ef9c0 100644 --- a/pkgs/oizys/internal/oizys/display.go +++ b/pkgs/oizys/internal/oizys/display.go @@ -3,6 +3,7 @@ package oizys import ( "fmt" "os" + "sort" "strings" "github.com/charmbracelet/lipgloss" @@ -46,6 +47,7 @@ func parsePackages(lines []string, desc string) *packages { } names[i] = name } + sort.Strings(names) return &packages{names: names, pad: maxLen + 1, desc: desc} }