fix(badges): default sort puts unprinted badges first (print_count ASC, then name ASC)
Previously the default sort was name-only, mixing printed and unprinted badges together. Staff at registration need unprinted badges at the top so they can immediately see who still needs a badge without filtering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -433,7 +433,8 @@ async function handle_search_refresh(params: any) {
|
|||||||
order_by_li = { affiliations: 'ASC' };
|
order_by_li = { affiliations: 'ASC' };
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
order_by_li = { given_name: 'ASC' };
|
// Unprinted (print_count=0) first, then alphabetical within each group.
|
||||||
|
order_by_li = { print_count: 'ASC', given_name: 'ASC' };
|
||||||
}
|
}
|
||||||
|
|
||||||
const results = await events_func.search__event_badge({
|
const results = await events_func.search__event_badge({
|
||||||
|
|||||||
Reference in New Issue
Block a user