Object to sort
Optional
compareFn: ((a, b) => number)Optional compare function to use when sorting the properties; defaults to a.localeCompare(b, 'en')
Optional
options: { Optional options to control the sort order; defaults to asc
Optional
sortNew object with the sorted properties
Deep sort the properties of an object by their key name and return a new object with the sorted properties.