Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 0d12e98

Browse files
authored
Merge pull request #262 from appwrite/fix-ordering-attributes
Fixes errors in Ordering Results section of docs.
2 parents 1b1b328 + 09e5e1c commit 0d12e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/docs/databases.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ func main() async throws {
551551
</table>
552552

553553
<h3><a href="/docs/databases#ordering" id="ordering">Ordering Results</a></h3>
554-
<p>When querying using the <a href="/docs/server/databases#databasesListDocuments">listDocuments</a> endpoint, you can specify the order of the documents returned using the "Query.orderAsc()" and "Query.orderDesc()" query methods.</p>
554+
<p>When querying using the <a href="/docs/server/databases#databasesListDocuments">listDocuments</a> endpoint, you can specify the order of the documents returned using the <code>Query.orderAsc()</code> and <code>Query.orderDesc()</code> query methods.</p>
555555

556556
<ul class="phases clear" data-ui-phases>
557557
<li>
@@ -657,7 +657,7 @@ func main() async throws {
657657
</li>
658658
</ul>
659659

660-
<p>To sort based on multiple attributes, pass multiple attribute IDs into <b>orderAttributes</b>. The order of the attribute IDs indicate their sort precedence. There must be an index with all attributes used to allow sorting with multiple attributes.</p>
660+
<p>To sort based on multiple attributes, simply provide multiple query methods.</p>
661661

662662
<ul class="phases clear" data-ui-phases>
663663
<li>

0 commit comments

Comments
 (0)