Skip to content

Commit

Permalink
Merge pull request #2030 from cardstack/cs-7800-cardsgrid-card-type-l…
Browse files Browse the repository at this point in the history
…ist-should-be-in-alphabetical-order

Make sure card types in index card are ordered by display_name
  • Loading branch information
jurgenwerk authored Jan 11, 2025
2 parents 4aaec1b + 4f3534d commit 831ee36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime-common/index-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export class Batch {
any([['i.is_deleted = false'], ['i.is_deleted IS NULL']]),
]),
`GROUP BY i.display_names->>0, i.types->>0`,
`ORDER BY i.display_names->>0 ASC`,
] as Expression);

let { nameExpressions, valueExpressions } = asExpressions(
Expand Down

0 comments on commit 831ee36

Please sign in to comment.