tri un tableau basé sur certains éléments

Array.sort(function (x, y) {
                let a = x.name.toUpperCase(),
                    b = y.name.toUpperCase();
                return a == b ? 0 : a > b ? 1 : -1;
            }); // place the element of array to be sorted in place of x.name and y.name
Uptight Unicorn