title: Is it possible to get a sorted list of attribute values from a JSON array using JSONPath
body: <p>Given JSON like:</p>
  
  <pre><code>[
      {
          "Serial no": 994,
      },
      {
          "Serial no": 456,
      }
  ]
  </code></pre>
  
  <p>I know this query will give me an array of all <code>Serial no</code> values, in the order they are in the JSON: <code>$..['Serial no']</code></p>
  
  <p>I'm not sure exactly what sorting capabilities JSONPath has but I think you can use <code>/</code> and <code>\</code> to sort - but how are they used to modify my query string in this case? I am only interested doing this in pure JSONPath, not JS or post-query sorting - that's easy, I just want to know if I can avoid it.</p>
  
  <p><a href="https://gabbi.readthedocs.io/en/latest/jsonpath.html" rel="nofollow noreferrer">This is a source</a> I found suggesting sorting is supported but it might be product-specific?</p>
  
  <p>I'm using <a href="http://www.jsonquerytool.com/" rel="nofollow noreferrer">http://www.jsonquerytool.com/</a> to test this</p>