You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have menu items with and without a group we have problems sorting them properly and they show mixed. That's because we first sort them by group and the compare logic is flawed.
The flaw is that we compare the groups only when both items have one and else compare the titles, it should be that an item without a group is sorted after an item with a group.
have an extension that adds three items to the editor context menu where two have a group and one has not. Use titles a, b, and c where the menu item without group is called b
Make sure that the item with a group are rendered together and that the item without shows below
Activity
jrieken commentedon Jul 5, 2016
The flaw is that we compare the groups only when both items have one and else compare the titles, it should be that an item without a group is sorted after an item with a group.
proper compare function, fixes #8756
alexdima commentedon Jul 5, 2016
👍 looked at the commit
jrieken commentedon Jul 5, 2016
To verify
a,b, andcwhere the menu item without group is calledbproper compare function, fixes microsoft#8756