mirror of
https://github.com/charmbracelet/glow
synced 2024-12-12 13:12:32 +00:00
fce3edf7db
* feat!: cleanup Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * more cleanup Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: more cleanup Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: more cleanup --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
12 lines
177 B
Go
12 lines
177 B
Go
package ui
|
|
|
|
import (
|
|
"cmp"
|
|
"slices"
|
|
)
|
|
|
|
func sortMarkdowns(mds []*markdown) {
|
|
slices.SortStableFunc(mds, func(a, b *markdown) int {
|
|
return cmp.Compare(a.Note, b.Note)
|
|
})
|
|
}
|