fortify: sort by time of start
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
27f2b53d18
commit
aecfae1874
2
print.go
2
print.go
@ -180,7 +180,7 @@ func printPs(short bool) {
|
|||||||
}
|
}
|
||||||
exp = append(exp, &expandedStateEntry{s: id.String(), State: instance})
|
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 short {
|
||||||
if flagJSON {
|
if flagJSON {
|
||||||
|
Loading…
Reference in New Issue
Block a user