Skip to main content

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

NameTypeDescription
idstringthe field to apply sorting on
descbooleanthe order of sorting if true, descending else ascending