title: Produce output from JSON for values and sort them by number
body: <p>I have a jq query to get two values from the JSON file:
  <code>jq -r '.[] | [.name, .size] | join(&quot;,&quot;)' file.json</code>
  This gives me an output like:</p>
  <pre><code>name1,1024
  name2,300
  name3,512
  </code></pre>
  <p>What I want is to sort them by number. I've tried to pipe the query by <code>| sort_by(.size | tonumber)</code> but it always fail on <code>Cannot iterate over string (&quot;name1,1024&quot;)</code></p>