Skip to content

five-on-it / packages/protocol/src/snapshot-v2 / wholeOrder

Function: wholeOrder() ​

wholeOrder(a, b): number

Defined in: packages/protocol/src/snapshot-v2.ts:251

The order of a whole snapshot's entities: by kind (the simulation's order of them), then by id.

Parameters ​

a ​

EntitySnapshot

b ​

EntitySnapshot

Returns ​

number