Skip to content

Menu items aren't sorted properly #8756

Closed

Description

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.

screen shot 2016-07-05 at 12 50 00

Activity

  1. added
    bug
    on Jul 5, 2016
  2. jrieken commented on Jul 5, 2016

    @jrieken
    ContributorAuthor

    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.

  3. added
    candidate
    on Jul 5, 2016
  4. added a commit that references this issue on Jul 5, 2016
    3f2c7cc
  5. alexdima commented on Jul 5, 2016

    @alexdima
    Member

    👍 looked at the commit

  6. jrieken commented on Jul 5, 2016

    @jrieken
    ContributorAuthor

    To verify

    • 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
  7. removed
    candidate
    on Jul 11, 2016
  8. locked and limited conversation to collaborators on Nov 18, 2017
  9. added a commit that references this issue on Sep 6, 2026
    caa3b46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions