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") } } }, { name: "Bootie", sides: { "Front": { height: math.unit(0.36327508091926575, "meters") }, "Front Corner": { height: math.unit(0.36327508091926575, "meters") }, "Side": { height: math.unit(0.36327508091926575, "meters") }, "Back Corner": { height: math.unit(0.36327508091926575, "meters") }, "Back": { height: math.unit(0.36327508091926575, "meters") }, "Bottom": { height: math.unit(0.5577294230461121, "meters") }, "Top": { height: math.unit(0.5577294230461121, "meters") } } } ] const dataShoes = [ { name: "Vans", sides: { "Front": { height: math.unit(0.1756718009710312, "meters") }, "Front Corner": { height: math.unit(0.1756718009710312, "meters") }, "Side": { height: math.unit(0.1756718009710312, "meters") }, "Back Corner": { height: math.unit(0.1756718009710312, "meters") }, "Back": { height: math.unit(0.1756718009710312, "meters") }, "Bottom": { height: math.unit(0.4387904107570648, "meters") }, "Top": { height: math.unit(0.4387904107570648, "meters") } } } ] const dataSandals = [ { name: "Flip Flop", sides: { "Front": { height: math.unit(0.06615997105836868, "meters") }, "Front Corner": { height: math.unit(0.06615997105836868, "meters") }, "Side": { height: math.unit(0.06615997105836868, "meters") }, "Back Corner": { height: math.unit(0.06615997105836868, "meters") }, "Back": { height: math.unit(0.06615997105836868, "meters") }, "Bottom": { height: math.unit(0.5377234816551208, "meters") }, "Top": { height: math.unit(0.5377234816551208, "meters") } } } ] const dataHeels = [ { name: "Stiletto", sides: { "Front": { height: math.unit(0.29693031311035156, "meters") }, "Front Corner": { height: math.unit(0.29693031311035156, "meters") }, "Side": { height: math.unit(0.29693031311035156, "meters") }, "Back Corner": { height: math.unit(0.29693031311035156, "meters") }, "Back": { height: math.unit(0.29693031311035156, "meters") }, "Bottom": { height: math.unit(0.559783935546875, "meters") }, "Top": { height: math.unit(0.559783935546875, "meters") } } } ] results.push({ name: "Boots", constructor: () => makeAutoVehicleGroup( dataBoots, "Boots", "clothing" ) }) results.push({ name: "Shoes", constructor: () => makeAutoVehicleGroup( dataShoes, "Shoes", "clothing" ) }) results.push({ name: "Sandals", constructor: () => makeAutoVehicleGroup( dataSandals, "Sandals", "clothing" ) }) results.push({ name: "Heels", constructor: () => makeAutoVehicleGroup( dataHeels, "Heels", "clothing" ) }) results.sort((b1, b2) => { e1 = b1.constructor(); e2 = b2.constructor(); return e1.name.localeCompare(e2.name) }); return results; }