"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function w(e){const c=[...e].sort((o,s)=>o.row-s.row),r={};c.forEach(o=>{r[o.row]||(r[o.row]=[]),r[o.row].push(o)});const t=[];return Object.keys(r).map(Number).sort((o,s)=>o-s).forEach(o=>{const s=r[o].sort((n,u)=>n.col-u.col);t.push(...s)}),t}exports.sortItemsByRowAndCol=w;
