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:
Scott Idem
2026-06-09 07:47:40 -04:00
parent 71aacb6346
commit b8ceed69d0

View File

@@ -433,7 +433,8 @@ async function handle_search_refresh(params: any) {
order_by_li = { affiliations: 'ASC' };
break;
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({