The DTD or Schema for the deployment descriptor determines the order. You should get whichever one goes for the deployment descriptor you're talking about.
I was talking about the elements which are at the same level in the web app.Some of them I turn up and down like filter-mapping and servlet-mapping but other likes session-timeout can,t.