const data = { States: ['NSW', 'VIC'], Countries: ['GBR', 'AUS'], Capitals: ['SYD', 'MEL'] } const sortedObject = Object.fromEntries(Object.entries(data).sort())