{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11998","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11998/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11998/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11998/events","html_url":"https://github.com/emberjs/ember.js/issues/11998","id":99418390,"number":11998,"title":"1.13.5 incorrect order of inserting to the DOM nested routes/views","user":{"login":"dmagunov","id":3579475,"avatar_url":"https://avatars.githubusercontent.com/u/3579475?v=3","gravatar_id":"","url":"https://api.github.com/users/dmagunov","html_url":"https://github.com/dmagunov","followers_url":"https://api.github.com/users/dmagunov/followers","following_url":"https://api.github.com/users/dmagunov/following{/other_user}","gists_url":"https://api.github.com/users/dmagunov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmagunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmagunov/subscriptions","organizations_url":"https://api.github.com/users/dmagunov/orgs","repos_url":"https://api.github.com/users/dmagunov/repos","events_url":"https://api.github.com/users/dmagunov/events{/privacy}","received_events_url":"https://api.github.com/users/dmagunov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-06T11:47:36Z","updated_at":"2015-08-08T22:57:50Z","closed_at":null,"body":"Hello,\r\n\r\nIf I have nested routes, Ember loads routes in correct order \"parent->child\", but insert into the DOM (fires didInsertElement) in reverse order \"child->parent\". So I couldn't use for example modal dialogs, because parent dialog would be on top, instead child.\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/129060647","html_url":"https://github.com/emberjs/ember.js/issues/11998#issuecomment-129060647","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/11998","id":129060647,"user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T22:57:50Z","updated_at":"2015-08-08T22:57:50Z","body":"@stefanpenner is correct.  The ordering is correct.  All child nodes must be inserted into the DOM (and have their `didInsertElement` called) before the parent.  That is precisely what you are seeing."}}