mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
agent tracker: don't sort based on updated
This commit is contained in:
parent
6e0edeac56
commit
621e1a0273
1 changed files with 0 additions and 8 deletions
|
|
@ -595,14 +595,6 @@ func runUI(args []string) error {
|
|||
|
||||
sortNotes := func(notes []ipc.Note) {
|
||||
sort.SliceStable(notes, func(i, j int) bool {
|
||||
iu, hasIU := parseTimestamp(notes[i].UpdatedAt)
|
||||
ju, hasJU := parseTimestamp(notes[j].UpdatedAt)
|
||||
if hasIU && hasJU && !iu.Equal(ju) {
|
||||
return iu.After(ju)
|
||||
}
|
||||
if hasIU != hasJU {
|
||||
return hasIU
|
||||
}
|
||||
ic, hasIC := parseTimestamp(notes[i].CreatedAt)
|
||||
jc, hasJC := parseTimestamp(notes[j].CreatedAt)
|
||||
if hasIC && hasJC && !ic.Equal(jc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue