Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: adds descending order to example

awalias28568da9ed7a
diff --git a/web/docs/client/order.mdx b/web/docs/client/order.mdx
index bf22db754f2..db1ed638a14 100644
--- a/web/docs/client/order.mdx
+++ b/web/docs/client/order.mdx
@@ -21,7 +21,7 @@ Orders the result with the specified `column`.
const { data, error } = await supabase
.from('cities')
.select('name', 'country_id')
- .order('id')
+ .order('id', { ascending: false })
```
@@ -182,7 +182,7 @@ If `true`, the result will be in ascending order.
const { data, error } = await supabase
.from('cities')
.select('name', 'country_id')
- .order('id')
+ .order('id', { ascending: false })
```
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 0509f11ed69..3a889dbb3a6 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -884,7 +884,7 @@ pages:
const { data, error } = await supabase
.from('cities')
.select('name', 'country_id')
- .order('id')
+ .order('id', { ascending: false })
```
py: |
```py