nl_tokens: Returns sorted data . If no sort keys are provided data is returned unaltered .
pl_tokens: function sortData ( dataset , sortKey , sortOrder = "ascending" ) { if ( ! sortKey ) { return dataset ; } // Ensures previous VictoryLine api for sortKey prop stays consistent if ( sortKey === "x" || sortKey === "y" ) { sortKey = ` ${ sortKey } ` ; } const order = sortOrder === "ascending" ? "asc" : "desc" ; return orderBy ( dataset , sortKey , <mask> ) ; }