{"action":"closed","issue":{"url":"https://api.github.com/repos/pingpong-labs/menus/issues/30","labels_url":"https://api.github.com/repos/pingpong-labs/menus/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/pingpong-labs/menus/issues/30/comments","events_url":"https://api.github.com/repos/pingpong-labs/menus/issues/30/events","html_url":"https://github.com/pingpong-labs/menus/issues/30","id":90140977,"number":30,"title":"Ordering menu items","user":{"login":"drparham","id":2704700,"avatar_url":"https://avatars.githubusercontent.com/u/2704700?v=3","gravatar_id":"","url":"https://api.github.com/users/drparham","html_url":"https://github.com/drparham","followers_url":"https://api.github.com/users/drparham/followers","following_url":"https://api.github.com/users/drparham/following{/other_user}","gists_url":"https://api.github.com/users/drparham/gists{/gist_id}","starred_url":"https://api.github.com/users/drparham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drparham/subscriptions","organizations_url":"https://api.github.com/users/drparham/orgs","repos_url":"https://api.github.com/users/drparham/repos","events_url":"https://api.github.com/users/drparham/events{/privacy}","received_events_url":"https://api.github.com/users/drparham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T16:02:25Z","updated_at":"2015-06-22T18:04:18Z","closed_at":"2015-06-22T18:04:18Z","body":"When using `$menu->route` and order, the order is appended to the url in the browser. For instance this:\r\n ```\r\n$menu->route(\r\n        'dashboard.index', // route name\r\n        'Dashboard', 1 // title\r\n    );\r\n```\r\nresults in this menu uri: `dashboard?1` That shouldn't show up. \r\n\r\nAlso, when doing a drop down the documentation says to format the order like so: \r\n```\r\n$menu->dropdown('Users', 4, function ($sub) {\r\n        $sub->route('dashboard.users', 'Users');\r\n        $sub->route('dashboard.roles', 'Roles');\r\n        $sub->route('dashboard.permissions', 'Permissions');\r\n    });\r\n```\r\nWhen it needs to be like this: \r\n```\r\n$menu->dropdown('Users', function ($sub) {\r\n        $sub->route('dashboard.users', 'Users');\r\n        $sub->route('dashboard.roles', 'Roles');\r\n        $sub->route('dashboard.permissions', 'Permissions');\r\n    }, 4);\r\n```\r\nOrder works properly in the `$menu->add` method."}}