title: How to sort object keys in an array, based on object properties?
body: <p>I have an object with the following structure:</p>
  
  <pre><code>root_object: {
      ITEM_ONE: {
          order: 2,
          prop_one: '123',
          prop_two: '456',
      },
      ITEM_TWO: {
          order: 1,
          prop_one: '789',
          prop_two: '321',
      },
      ITEM_THREE: {
          order: 3,
          prop_one: '654',
          prop_two: '987',
      },
  }
  </code></pre>
  
  <p>As an end result, I will need to get the list of keys:</p>
  
  <pre><code>['ITEM_ONE', 'ITEM_TWO', 'ITEM_THREE']
  </code></pre>
  
  <p><strong>BUT</strong> they need to be ordered based on the property <code>order</code>, which will result as:</p>
  
  <pre><code>['ITEM_TWO', 'ITEM_ONE', 'ITEM_THREE']
  </code></pre>
  
  <p>I prefer to use the <code>_lodash</code> library for this purpose, but I'm not even sure how to start with it, since the structure for the <code>root_object</code> is an object and not a list.</p>