defaultSort
defaultSort(
property?,priority?): (target,key) =>void
Property level decorator.
Used to specify which properties a table, by default, will be sorted by and with what priority order.
If we create contacts with names Bill and Alex, they will be ordered in creation order.
Now, if we add @defaultSort decorator to name property then students will be sorted by name.
Sets {@link PropertyMeta.orderByProperty} and {@link PropertyMeta.orderByPriority}.
Parameters
property?
string
property name
priority?
number
priority of the property
Returns
(
target,key):void
Parameters
target
object
key
string
Returns
void