From aecfae18749b7f1c22bb37c706a1043147680d50 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 22 Dec 2024 12:06:54 +0900 Subject: [PATCH] fortify: sort by time of start Signed-off-by: Ophestra --- print.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.go b/print.go index 63a4522..c87600a 100644 --- a/print.go +++ b/print.go @@ -180,7 +180,7 @@ func printPs(short bool) { } exp = append(exp, &expandedStateEntry{s: id.String(), State: instance}) } - slices.SortFunc(exp, func(a, b *expandedStateEntry) int { return strings.Compare(a.s, b.s) }) + slices.SortFunc(exp, func(a, b *expandedStateEntry) int { return a.Time.Compare(b.Time) }) if short { if flagJSON {