Use Identifier as last sort resort for default menu sort

Fixes #1562
This commit is contained in:
Bjørn Erik Pedersen 2015-11-09 21:01:36 +01:00
parent 01c87d2d23
commit 570713a478

View file

@ -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