BlockSuite API Documentation / @blocksuite/affine-block-surface / 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/src/utils/sort.ts:52