Skip to content

Commit 5e732da

Browse files
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. #1109 (comment)
1 parent 9ec598c commit 5e732da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom-completions/gh/gh-completions.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,5 +600,5 @@ export def "gh my stars" [] {
600600
break
601601
}
602602
}
603-
$stars | flatten | update cells --columns [starredAt] {$in| date humanize} | sort-by starredAt
603+
$stars | flatten | update cells --columns [starredAt] { $in | into datetime } | sort-by starredAt
604604
}

0 commit comments

Comments
 (0)