sort de matriz inmutable JavaScript

[...array].sort(sortFn)
Sonya Milyukova