mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-23 16:44:17 +02:00
rename byDate to sortByDate in sort.go
This commit is contained in:
parent
3b3a3a0abd
commit
5dc3ee1cc4
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ const (
|
|||
descending sortOrder = false
|
||||
)
|
||||
|
||||
func sortMarkdowns(mds []*markdown, byDate bool, ascending sortOrder) {
|
||||
if byDate {
|
||||
func sortMarkdowns(mds []*markdown, sortByDate bool, ascending sortOrder) {
|
||||
if sortByDate {
|
||||
if ascending {
|
||||
slices.SortStableFunc(mds, func(a, b *markdown) int {
|
||||
return compareTime(a.Modtime, b.Modtime)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue