@univerjs/core v0.5.0-beta.1 • Docs
Function: sortRulesFactory()
function sortRulesFactory(key, ruler): (oa, ob) => number
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
key | string | 'index' | compare key |
ruler | number | 1 | 1:asc , 0:desc |
Returns
Function
sort function
Parameters
Parameter | Type |
---|---|
oa | any |
ob | any |
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/sort-rules.ts:43