juliya
5/15/2020 - 4:05 PM

abc sort

function(a, b) {
            let textA = a.text.toLowerCase().replace('ё','е'+String.fromCharCode(1110));
            let textB = b.text.toLocaleLowerCase().replace('ё','е'+String.fromCharCode(1110));
            if (textA > textB) {return 1;}
            if (textA < textB) {return -1;}
            return 0;
        }