function makeClothing() { const results = []; const dataBoots = [ { name: "Military Boot", sides: { "Front": { height: math.unit(0.36637169122695923, "meters") }, "Front Corner": { height: math.unit(0.36637169122695923, "meters") }, "Side": { height: math.unit(0.36637169122695923, "meters") }, "Back Corner": { height: math.unit(0.36637169122695923, "meters") }, "Back": { height: math.unit(0.36637169122695923, "meters") }, "Bottom": { height: math.unit(0.49710506200790405, "meters") }, "Top": { height: math.unit(0.49710506200790405, "meters") } } } ] results.push({ name: "Boots", constructor: () => makeAutoVehicleGroup( dataBoots, "Boots", "clothing" ) }) results.sort((b1, b2) => { e1 = b1.constructor(); e2 = b2.constructor(); return e1.name.localeCompare(e2.name) }); return results; }