Skip to content

Commit 48ebb48

Browse files
authored
Merge pull request #9 from moleculemaker/mjberry/speed_up_typeahead
broke ties when sorting
2 parents 0003c79 + 2049621 commit 48ebb48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/db/queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_query(columns_to_select: str, where_clause: str) -> str:
8787
LEFT JOIN cleandb.predictions_uniprot_annot_ec_mv01 puae
8888
ON puae.predictions_uniprot_annot_id = pua.predictions_uniprot_annot_id
8989
WHERE {where_clause}
90-
ORDER BY puace.max_clean_ec_confidence DESC
90+
ORDER BY puace.max_clean_ec_confidence DESC, pua.amino_acids ASC, pua.predictions_uniprot_annot_id ASC
9191
"""
9292

9393
async def get_filtered_data(

0 commit comments

Comments
 (0)