UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

6 lines (5 loc) 134 B
const cmpPriority = (a, b) => a.priority - b.priority; const sortPriority = (arr) => arr.sort(cmpPriority); export { sortPriority };