mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
01c87d2d23
commit
570713a478
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ func (by MenuEntryBy) Sort(menu Menu) {
|
|||
|
||||
var defaultMenuEntrySort = func(m1, m2 *MenuEntry) bool {
|
||||
if m1.Weight == m2.Weight {
|
||||
if m1.Name == m2.Name {
|
||||
return m1.Identifier < m2.Identifier
|
||||
}
|
||||
return m1.Name < m2.Name
|
||||
}
|
||||
return m1.Weight < m2.Weight
|
||||
|
|
Loading…
Reference in a new issue