BlockSuite API Documentation / @blocksuite/blocks / sortIndex
Function: sortIndex()
sortIndex(
a
,b
,groupIndexMap
):1
|0
|-1
Parameters
a
id
string
index
string
b
id
string
index
string
groupIndexMap
Map
<string
, { id
: string
; index
: string
; }>
Returns
1
| 0
| -1
Defined in
packages/affine/block-surface/dist/utils/sort.d.ts:5