Temofei,
<script>
addEventListener("DOMContentLoaded", () => {
const sliders = document.querySelectorAll(".command-list_in"),
collator = new Intl.Collator(["en", "ru"], { numeric: true }),
comparator = (a, b) => collator.compare(
a.querySelector("[title]").title,
b.querySelector("[title]").title);
for(const slider of sliders) {
slider.append(...[...slider.children].sort(comparator))
}
})
</script>
|