Skip to content

Commit c0c4341

Browse files
committed
allow sorting catalogs on title
1 parent 310ec6a commit c0c4341

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/database_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ async def get_all_catalogs(
17761776
A tuple of (catalogs, next pagination token if any, optional count).
17771777
"""
17781778
# Define sortable fields for catalogs
1779-
sortable_fields = ["id"]
1779+
sortable_fields = ["id", "title"]
17801780

17811781
# Format the sort parameter
17821782
formatted_sort = []

stac_fastapi/opensearch/stac_fastapi/opensearch/database_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ async def get_all_catalogs(
17451745
A tuple of (catalogs, next pagination token if any, optional count).
17461746
"""
17471747
# Define sortable fields for catalogs
1748-
sortable_fields = ["id"]
1748+
sortable_fields = ["id", "title"]
17491749

17501750
# Format the sort parameter
17511751
formatted_sort = []

0 commit comments

Comments
 (0)