From 5e732dadb0ce25d0248495796dda8290ba30bfd6 Mon Sep 17 00:00:00 2001 From: Francesc Elies Date: Thu, 1 May 2025 22:22:10 +0200 Subject: [PATCH] fix(gh): list my stars wrong sorting (52 seconds ago) (#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 --- custom-completions/gh/gh-completions.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-completions/gh/gh-completions.nu b/custom-completions/gh/gh-completions.nu index 0e94ca5..76ff843 100644 --- a/custom-completions/gh/gh-completions.nu +++ b/custom-completions/gh/gh-completions.nu @@ -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 }