JSFiddle - React, Tailwind, and code Playground
by Vladimir
JavaScript
function s(t) {
var l = function(q){q=q.toLowerCase().charCodeAt();return q==1105?q-27.5:q};
return t.split('').sort(function(x,y){x=l(x);y=l(y);return x<y?-1:x==y?0:1}).join('')
}
console.clear();
['AaZbBXo', 'ТстСтро','ТестоваяСтрока', 'Ёлкиёлочки', 'МиномЁт'].forEach(function(testStr) {
console.log(testStr + ' => ' + s(testStr));
});