title: How to sort an array of objects based on nested key using Ramda?
body: <p>I start off with an object like this:</p>
  
  <pre><code>const myObj = {
    key1: {a: 123, b: 'some field1'},
    key2: {a: 1, b: 'some field2'},
    key3: {a: 123123, b: 'some field3'}
  }
  </code></pre>
  
  <p>I convert it to an array using <code>R.toPairs</code>, resulting in:</p>
  
  <pre><code>[
    ["key1", {"a": 123, "b": "some field1"}], 
    ["key2", {"a": 1, "b": "some field2"}], 
    ["key3", {"a": 123123, "b": "some field3"}]
  ]
  </code></pre>
  
  <p>Not sure now how to sort this array on the deeper key <code>a</code>. I hear Ramda's lenses could help but not sure how. I'm also open to non-lens approaches too.</p>