Skip to content

Commit bc44dcd

Browse files
Robbie1977Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 2ac1787 commit bc44dcd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/vfbquery/vfb_queries.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,10 @@ def SimilarMorphologyTo_to_schema(name, take_default):
12661266
# type column this PR exposes — keeps term-info previews in sync with
12671267
# the full /run_query response. source/source_id are intentionally
12681268
# omitted; they're noisy in compact previews and only meaningful when
1269-
# the user opens the full table.
1270-
preview_columns = ["id", "name", "score", "tags", "type", "template", "technique", "thumbnail"]
1269+
# the user opens the full table. Keep score before name so preview
1270+
# sorting continues to default to score-descending under the current
1271+
# header-order-based preview sort selection.
1272+
preview_columns = ["id", "score", "name", "tags", "type", "template", "technique", "thumbnail"]
12711273

12721274
return Query(query=query, label=label, function=function, takes=takes, preview=preview, preview_columns=preview_columns)
12731275

0 commit comments

Comments
 (0)