Skip to content

Commit 3a1f27c

Browse files
committed
default category sort
1 parent 72410e2 commit 3a1f27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/categories/libs/queries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def list_data(params):
1111
ref = DB.collection(TABLE)
1212

13-
query = ref
13+
query = ref.order_by('category', direction=firestore.Query.ASCENDING)
1414

1515
data = []
1616

0 commit comments

Comments
 (0)