I’m using ASP.NET MVC4. How do I sort the querystring shown in the browser?
Instead of: ...?c=1&b=1&a=1
I want: ...?a=1&b=1&c=1
If the querystring is based on a link which I create, then I can sort it easily by sorting the RouteValueDictionary. But if the querystring comes from a submitted form, then I noticed that its ordering is based on the order of the form’s <input> and <select> fields. Since the markup changes often, I don’t want to manually sort it this way though.
So I hope I can sort the RouteValueDictionary from which these routes come from. But I don’t know how?
Does not appear that this is possible with MVC4.