The Map object holds key-value pairs and remembers the original insertion order of the keys. Any value (both objects and primitive values) may be used as either a key or a value.| developer.mozilla.org
Immutability means avoiding any changes to the state of an object once it has been created. Learn how to implement immutability by creating an Immer clone.| ckeditor.com
The sort() method of Array instances sorts the elements of an array in place and returns the reference to the same array, now sorted. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values.| MDN Web Docs