{"action":"created","issue":{"url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/186","labels_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/186/comments","events_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/186/events","html_url":"https://github.com/phpfmt/sublime-phpfmt/issues/186","id":103618856,"number":186,"title":"Feature:Arranging namespaces based on length","user":{"login":"olimorris","id":9512444,"avatar_url":"https://avatars.githubusercontent.com/u/9512444?v=3","gravatar_id":"","url":"https://api.github.com/users/olimorris","html_url":"https://github.com/olimorris","followers_url":"https://api.github.com/users/olimorris/followers","following_url":"https://api.github.com/users/olimorris/following{/other_user}","gists_url":"https://api.github.com/users/olimorris/gists{/gist_id}","starred_url":"https://api.github.com/users/olimorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimorris/subscriptions","organizations_url":"https://api.github.com/users/olimorris/orgs","repos_url":"https://api.github.com/users/olimorris/repos","events_url":"https://api.github.com/users/olimorris/events{/privacy}","received_events_url":"https://api.github.com/users/olimorris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-27T23:56:04Z","updated_at":"2016-01-25T00:08:35Z","closed_at":"2015-08-28T05:42:19Z","body":"Firstly, thank the lord for this package. An absolute life saver.\r\n\r\nSo currently I toggle this on save and the package quite nicely rearranges my namespaces into alphabetical order like so:\r\n```\r\nuse App\\Http\\Requests\\JobRequest;\r\nuse App\\RocketCandy\\Contracts\\Bid;\r\nuse App\\RocketCandy\\Contracts\\Job;\r\nuse App\\RocketCandy\\Contracts\\Tag;\r\nuse App\\RocketCandy\\Exceptions\\FailedJobCreateException;\r\nuse App\\RocketCandy\\Exceptions\\NaughtyBoyException;\r\nuse Illuminate\\Support\\Facades\\Auth;\r\nuse Illuminate\\Support\\Facades\\Lang;\r\nuse Illuminate\\Support\\Facades\\Redirect;\r\nuse Laracasts\\Flash\\Flash;\r\n```\r\nHowever it doesn't look great. I like to order them based on the length of of the namespace:\r\n```\r\nuse Laracasts\\Flash\\Flash;\r\nuse App\\Http\\Requests\\JobRequest;\r\nuse App\\RocketCandy\\Contracts\\Bid;\r\nuse App\\RocketCandy\\Contracts\\Job;\r\nuse App\\RocketCandy\\Contracts\\Tag;\r\nuse Illuminate\\Support\\Facades\\Auth;\r\nuse Illuminate\\Support\\Facades\\Lang;\r\nuse Illuminate\\Support\\Facades\\Redirect;\r\nuse App\\RocketCandy\\Exceptions\\NaughtyBoyException;\r\nuse App\\RocketCandy\\Exceptions\\FailedJobCreateException;\r\n```\r\n\r\nAny chance this feature could be built in? A lot of us in the Laravel community quite like ordering on this basis."},"comment":{"url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/comments/174355218","html_url":"https://github.com/phpfmt/sublime-phpfmt/issues/186#issuecomment-174355218","issue_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/186","id":174355218,"user":{"login":"ccirello","id":138827,"avatar_url":"https://avatars.githubusercontent.com/u/138827?v=3","gravatar_id":"","url":"https://api.github.com/users/ccirello","html_url":"https://github.com/ccirello","followers_url":"https://api.github.com/users/ccirello/followers","following_url":"https://api.github.com/users/ccirello/following{/other_user}","gists_url":"https://api.github.com/users/ccirello/gists{/gist_id}","starred_url":"https://api.github.com/users/ccirello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccirello/subscriptions","organizations_url":"https://api.github.com/users/ccirello/orgs","repos_url":"https://api.github.com/users/ccirello/repos","events_url":"https://api.github.com/users/ccirello/events{/privacy}","received_events_url":"https://api.github.com/users/ccirello/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T00:08:35Z","updated_at":"2016-01-25T00:08:35Z","body":"Have you tried SortUseNameSpace? "}}