Universeorange.com/Docs/

Priya library Function reference Element functions naturalICompare

    ready(() => {
    let list = [11, 1, 33, 154, 55, 15, 'd', 'n', 'a']
    let list_sort = list.sort(_('_').naturalICompare);
    console.log(list_sort);
});

Sort an array the natural way case insensitive.

Last modified: 2021-06-07

© 2021 universeorange.com