title: How to return a list of user-defined struct in solidity?
body: <p>I want to return a list of user-defined struct</p>
  
  <pre><code>function sortByEtherValues (string category) public view returns (JobStruct[]) {
  ...
  }
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>Failed to decode output: Error: Unsupported or invalid type: tuple</p>
  </blockquote>