@mocanvas/store · function
declare function sortByIndex<T extends {
index: IndexKey;
}>(items: readonly T[]): T[]Return a sorted copy of items ordered by their index (stable).
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.