title: Karate match two json files(expected json and API response) irrespective of the order of array elements
body: <p>Expected Response:</p>
  <pre><code>{&quot;data&quot;:{
  {&quot;assignments&quot;:[{&quot;locationId&quot;:&quot;1186755&quot;,&quot;locationName&quot;:&quot;X.11.11&quot;},{&quot;locationId&quot;:&quot;1186756&quot;,&quot;locationName&quot;:&quot;X.11.12&quot;}]}}}
  </code></pre>
  <p>Response:</p>
  <pre><code>{&quot;data&quot;:{
  {&quot;assignments&quot;:[{&quot;locationId&quot;:&quot;1186756&quot;,&quot;locationName&quot;:&quot;X.11.12&quot;},{&quot;locationId&quot;:&quot;1186755&quot;,&quot;locationName&quot;:&quot;X.11.11&quot;}]}}}
  </code></pre>
  <p>I saw a SO post stating to use karate.sort(response, x=&gt;x.locationId), when i tried it's giving me empty response. Is there any simple way i can achieve do the comparison of whole response file irrespective of order?</p>
  <p>Note: I even tried contains only, but it's failing the assertion.</p>