title: How to change the order of a JavaScript object?
body: <p>My JavaScript object looks like this:</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 object dynamically.</p>
  
  <p>After sorting, the object 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?</p>