1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00

fix(gh): list my stars wrong sorting (52 seconds ago) <Francesc Elies> (#1110)

github stars listing was wrong because humanized date strings were being
sorted instead datetime objects.

Ref.
https://github.com/nushell/nu_scripts/pull/1109#discussion_r2070528888
This commit is contained in:
Francesc Elies 2025-05-01 22:22:10 +02:00 committed by GitHub
parent 9ec598c72a
commit 5e732dadb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -600,5 +600,5 @@ export def "gh my stars" [] {
break
}
}
$stars | flatten | update cells --columns [starredAt] {$in| date humanize} | sort-by starredAt
$stars | flatten | update cells --columns [starredAt] { $in | into datetime } | sort-by starredAt
}