Improve color sort order symmetry

This commit is contained in:
Sam Becker 2025-08-06 09:10:06 -05:00
parent 0dc899cf80
commit b0072429d4

View File

@ -185,8 +185,8 @@ export const getOrderByFromOptions = (options: PhotoQueryOptions) => {
: 'ORDER BY color_sort DESC, taken_at DESC';
case 'colorAsc':
return sortWithPriority
? 'ORDER BY priority_order ASC, color_sort ASC, taken_at DESC'
: 'ORDER BY color_sort ASC, taken_at DESC';
? 'ORDER BY priority_order ASC, color_sort ASC, taken_at ASC'
: 'ORDER BY color_sort ASC, taken_at ASC';
}
};