title: jq sorts KEY and VALUES in different way - how can I enumerate them in the same order?
body: <p>I get REST output in JSON format using curl command as below</p>
  
  <p>Getting KEY names alone using:</p>
  
  <pre><code>curl http://test.te:8080/testApp/app/version | jq '.version' | jq '. | keys'
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>"Archiver-Version",
  "Build-Id",
  "Build-Jdk",
  "Build-Number",
  "Build-Tag",
  "Built-By"
  </code></pre>
  
  <p>Getting VALUES alone using:</p>
  
  <pre><code>curl http://test.te.com:8080/testApp/app/version | jq '.version' | jq '.[]'
  </code></pre>
  
  <p>OUTPUT (Note how the order of values doesn't correspond to the order of key names; e.g., the first value, <code>"user@test.com"</code>, is the value for key <code>"Built-By"</code>, not, as I would expect, for the first key, <code>"Archiver-Version"</code>):</p>
  
  <pre><code>"user@test.com"
  "1634d38"
  "sandbox"
  "02-03-2014-13:41"
  "testApp"
  </code></pre>
  
  <p>I am trying to assign the KEYS and VALUES to separate arrays, so that I can iterate over them and display them in table format.</p>
  
  <p>But these two commands are sorted in different way, I cannot assign the values and keys directly. </p>
  
  <p>Is there anyway to change the sorting of KEYS and VALUES so that both are same? </p>