Skip to content

Commit

Permalink
docs-Proofreading, change "unicode" to "Unicode" (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjnield authored Sep 2, 2024
1 parent 4b13f35 commit a410cd2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ SELECT array::group(tags) AS tags FROM article GROUP ALL;

## Sort records using the `ORDER BY` clause

To sort records, SurrealDB allows ordering on multiple fields and nested fields. Use the `ORDER BY` clause to specify a comma-separated list of field names that should be used to order the resulting records. The `ASC` and `DESC` keywords can be used to specify whether results should be sorted in an ascending or descending manner. The `COLLATE` keyword can be used to use unicode collation when ordering text in string values, ensuring that different cases, and different languages are sorted in a consistent manner. Finally, the `NUMERIC` can be used to correctly sort text which contains numeric values.
To sort records, SurrealDB allows ordering on multiple fields and nested fields. Use the `ORDER BY` clause to specify a comma-separated list of field names that should be used to order the resulting records. The `ASC` and `DESC` keywords can be used to specify whether results should be sorted in an ascending or descending manner. The `COLLATE` keyword can be used to use Unicode collation when ordering text in string values, ensuring that different cases, and different languages are sorted in a consistent manner. Finally, the `NUMERIC` can be used to correctly sort text which contains numeric values.

```surql
-- Order records randomly
Expand All @@ -284,7 +284,7 @@ SELECT * FROM song ORDER BY rating DESC;
-- Order records by multiple fields independently
SELECT * FROM song ORDER BY artist ASC, rating DESC;
-- Order text fields with unicode collation
-- Order text fields with Unicode collation
SELECT * FROM article ORDER BY title COLLATE ASC;
-- Order text fields with which include numeric values
Expand Down

0 comments on commit a410cd2

Please sign in to comment.