{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/24744","labels_url":"https://api.github.com/repos/saltstack/salt/issues/24744/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/24744/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/24744/events","html_url":"https://github.com/saltstack/salt/issues/24744","id":88969075,"number":24744,"title":"Allow states to define order: first","user":{"login":"anlutro","id":163093,"avatar_url":"https://avatars.githubusercontent.com/u/163093?v=3","gravatar_id":"","url":"https://api.github.com/users/anlutro","html_url":"https://github.com/anlutro","followers_url":"https://api.github.com/users/anlutro/followers","following_url":"https://api.github.com/users/anlutro/following{/other_user}","gists_url":"https://api.github.com/users/anlutro/gists{/gist_id}","starred_url":"https://api.github.com/users/anlutro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anlutro/subscriptions","organizations_url":"https://api.github.com/users/anlutro/orgs","repos_url":"https://api.github.com/users/anlutro/repos","events_url":"https://api.github.com/users/anlutro/events{/privacy}","received_events_url":"https://api.github.com/users/anlutro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Feature","name":"Feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2464,"closed_issues":2444,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-08-12T01:25:12Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-17T09:40:08Z","updated_at":"2015-08-12T03:35:45Z","closed_at":null,"body":"It seems inconsistent to allow states to define `order: last` but not `order: first`. I assumed this functionality was present and was surprised to see my state ordered last instead of first.\r\n\r\nAt the very least I think salt should throw an exception if the `order` argument is invalid (i.e. not an int and not the string \"last\")."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/130149178","html_url":"https://github.com/saltstack/salt/issues/24744#issuecomment-130149178","issue_url":"https://api.github.com/repos/saltstack/salt/issues/24744","id":130149178,"user":{"login":"gtmanfred","id":732321,"avatar_url":"https://avatars.githubusercontent.com/u/732321?v=3","gravatar_id":"","url":"https://api.github.com/users/gtmanfred","html_url":"https://github.com/gtmanfred","followers_url":"https://api.github.com/users/gtmanfred/followers","following_url":"https://api.github.com/users/gtmanfred/following{/other_user}","gists_url":"https://api.github.com/users/gtmanfred/gists{/gist_id}","starred_url":"https://api.github.com/users/gtmanfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtmanfred/subscriptions","organizations_url":"https://api.github.com/users/gtmanfred/orgs","repos_url":"https://api.github.com/users/gtmanfred/repos","events_url":"https://api.github.com/users/gtmanfred/events{/privacy}","received_events_url":"https://api.github.com/users/gtmanfred/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T03:35:45Z","updated_at":"2015-08-12T03:35:45Z","body":"you can set\r\n\r\n    order: 1\r\n\r\nFor last, it makes sense, cause what salt does is it goes through and looks for anything that has an order: <number> set, and puts those in order... then it takes all other states and orders them with requisites, and then adds 10000 to the last defined order number, and then starts numbering the rest of the states from that.  So, you could either do -1... which I don't think it does, or last which is what was decided on."}}