{"id":13257569,"date":"2020-08-14T16:24:54","date_gmt":"2020-08-14T16:24:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/apply-multiple-sort\/"},"modified":"2020-08-14T16:24:54","modified_gmt":"2020-08-14T16:24:54","slug":"apply-multiple-sort","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/apply-multiple-sort\/","title":{"rendered":"Apply multiple sort"},"content":{"rendered":"<p>How do you apply multiple sort rules? This is what I have and it doesn&#8217;t work:<br \/>\n$query-&gt;sort(&#8220;Monthly Price&#8221;, &#8220;desc&#8221;);<br \/>\n$query-&gt;sort(&#8220;Ad&#8221;,&#8221;desc&#8221;);<\/p>\n","protected":false},"template":"","class_list":["post-13257569","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13257569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13257569\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13257569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}