DataStateSorting
Description
standardized structure to be passed in order to sort data
example usage
the following example is used to sort data by score descending
const sorting = {
id: "score",
desc: true,
};
Attributes
Name | Type | Description |
---|---|---|
id | string | the field to apply sorting on |
desc | boolean | the order of sorting if true, descending else ascending |