How to change the order of javascript map object?
<p>My javascript map object looks like </p>

<pre><code>    "ivrItems" : {
                "50b5e7bec90a6f4e19000001" : {
                    "name" : "sdf",
                    "key" : "555",
                    "onSelect" : "fsdfsdfsdf"
                },
                "50b5e7c3c90a6f4e19000002" : {
                    "name" : "dfgdf",
                    "key" : "666",
                    "onSelect" : "fdgdfgdf",
                    "parentId" : null
                },
                "50b5e7c8c90a6f4e19000003" : {
                    "name" : "dfdf",
                    "key" : "55",
                    "onSelect" : "dfdffffffffff",
                    "parentId" : null
                }
                  }
</code></pre>

<p>Now i want to change the order of the map object dynamically , map object after changing should look as follows </p>

<pre><code>            "ivrItems" : {
                "50b5e7bec90a6f4e19000001" : {
                    "name" : "sdf",
                    "key" : "555",
                    "onSelect" : "fsdfsdfsdf"
                },
                                   "50b5e7c8c90a6f4e19000003" : {
                    "name" : "dfdf",
                    "key" : "55",
                    "onSelect" : "dfdffffffffff",
                    "parentId" : null
                }
                "50b5e7c3c90a6f4e19000002" : {
                    "name" : "dfgdf",
                    "key" : "666",
                    "onSelect" : "fdgdfgdf",
                    "parentId" : null
                }

                  }
</code></pre>

<p>Is there any possible way to do this? if so guide me.....</p>

<p>Thanks...</p>
