{"action":"opened","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5795","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5795/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5795/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5795/events","html_url":"https://github.com/composer/composer/issues/5795","id":183621216,"number":5795,"title":"require - Add packages alphabetically","user":{"login":"sourcerer-mike","id":2559177,"avatar_url":"https://avatars.githubusercontent.com/u/2559177?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcerer-mike","html_url":"https://github.com/sourcerer-mike","followers_url":"https://api.github.com/users/sourcerer-mike/followers","following_url":"https://api.github.com/users/sourcerer-mike/following{/other_user}","gists_url":"https://api.github.com/users/sourcerer-mike/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcerer-mike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcerer-mike/subscriptions","organizations_url":"https://api.github.com/users/sourcerer-mike/orgs","repos_url":"https://api.github.com/users/sourcerer-mike/repos","events_url":"https://api.github.com/users/sourcerer-mike/events{/privacy}","received_events_url":"https://api.github.com/users/sourcerer-mike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T08:29:23Z","updated_at":"2016-10-18T08:29:23Z","closed_at":null,"body":"My `composer.json`:\r\n\r\n```json\r\n\"require\": {\r\n    \"composer/composer\": \"~1.0.0@dev\",\r\n    \"wp-cli/wp-cli\": \"~0.23\",\r\n    \"messed-up/ignore\": \">9000\"\r\n  },\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\ncomposer require atoum/atoum\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\n\"require\": {\r\n    \"composer/composer\": \"~1.0.0@dev\",\r\n    \"wp-cli/wp-cli\": \"~0.23\",\r\n    \"messed-up/ignore\": \">9000\",\r\n    \"atoum/atoum\": \"~something\"\r\n  },\r\n```\r\n\r\nAnd I expected this to happen:\r\n\r\n```\r\n\"require\": {\r\n    \"atoum/atoum\": \"~something\",\r\n    \"composer/composer\": \"~1.0.0@dev\",\r\n    \"wp-cli/wp-cli\": \"~0.23\",\r\n    \"messed-up/ignore\": \">9000\"\r\n  },\r\n```\r\n\r\nSo please ignore if there are mistakes already.\r\nBut add packages in alphabetical order, which is the most useful one in lists over nine packages - happens quiet often.\r\nTiny thing but way more readable and easier to maintain IMHO.\r\n\r\nWhat do you think?"}}
{"actor":{"display_login":"sourcerer-mike"}}