Improve color sort order symmetry
This commit is contained in:
parent
0dc899cf80
commit
b0072429d4
@ -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';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user