The array to sort
OptionalpropertyKey: string = ""The property key to sort by, if any; can be a dot-separated path
OptionalsortOptions: { ignorePunctuation: boolean; numeric: boolean } = {}Options affecting the sorting of elements
The sorted array
Sort an array in-place using a language-aware comparison function that can sort by a property key. If no property key is provided, the array is sorted directly.