Skip to content

Commit 1a07980

Browse files
author
Yan Xu
committed
Update biosample query orderby clause
1 parent 104245c commit 1a07980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nmdc_server/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def execute(self, db: Session, prefetch_omics_processing_data: bool = False) ->
846846
biosample_query = (
847847
db.query(model)
848848
.join(subquery, model.id == subquery.c.id) # type: ignore
849-
.order_by(self.table.model.name, self.table.model.id) # type: ignore
849+
.order_by(self.table.model.multiomics.desc(), self.table.model.id) # type: ignore
850850
)
851851

852852
if prefetch_omics_processing_data:

0 commit comments

Comments
 (0)