claim_search: support ordering by 'name'
This commit is contained in:
parent
54f8bd35b3
commit
1249b0394e
2 changed files with 6 additions and 0 deletions
|
@ -573,6 +573,9 @@ function ClaimListDiscover(props: Props) {
|
|||
case CS.ORDER_BY_NEW_ASC:
|
||||
order_by = CS.ORDER_BY_NEW_ASC_VALUE;
|
||||
break;
|
||||
case CS.ORDER_BY_NAME_ASC:
|
||||
order_by = CS.ORDER_BY_NAME_ASC_VALUE;
|
||||
break;
|
||||
default:
|
||||
order_by = CS.ORDER_BY_TOP_VALUE;
|
||||
}
|
||||
|
|
|
@ -39,6 +39,9 @@ export const ORDER_BY_NEW_VALUE = ['release_time'];
|
|||
export const ORDER_BY_NEW_ASC = 'new_asc';
|
||||
export const ORDER_BY_NEW_ASC_VALUE = ['^release_time'];
|
||||
|
||||
export const ORDER_BY_NAME_ASC = 'name_asc';
|
||||
export const ORDER_BY_NAME_ASC_VALUE = ['^name'];
|
||||
|
||||
// @note: These are used to build the default controls available on claim listings.
|
||||
export const ORDER_BY_TYPES = [ORDER_BY_NEW, ORDER_BY_TRENDING, ORDER_BY_TOP];
|
||||
|
||||
|
|
Loading…
Reference in a new issue