sortString
sortString
Sorts a DataSet list field as strings.
Parameters
dmName(String): The DataSet name (DM name)responseKey(String): The field path within the list to sort by (e.g."list.name")asc(String): The sort direction"ascending"— ascending order"descending"— descending order"origin"— restore the original order
Returns: None (void)
Description
Sorts the DataSet's list using string comparison. Sorting a numeric field this way compares the values as strings, which may not produce the order you expect — use sortNumber for numeric fields.
Example
$vm.sortString("stock", "list.name", "ascending");
Related
$vm.sortNumber(dmName, responseKey, asc, attrPath)— sort numerically$vm.sortBy(dmName, jsonData)— sort by multiple conditions