fortify: sort by time of start
All checks were successful
Tests / Go tests (push) Successful in 35s
Nix / NixOS tests (push) Successful in 3m14s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2024-12-22 12:06:54 +09:00
parent 27f2b53d18
commit aecfae1874

View File

@@ -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 {