fix sorting
This commit is contained in:
parent
757e7fb21a
commit
272b2b8d27
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function initialSort(source, target) {
|
|||
let title = post.firstElementChild.innerText;
|
||||
posts.push([title, post.cloneNode(true)]);
|
||||
}
|
||||
posts.sort(([a, _1], [b, _2]) => a.toLocaleLowerCase() > b.toLocaleLowerCase());
|
||||
posts.sort(([a, _1], [b, _2]) => a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase()));
|
||||
for (let [_, post] of posts) {
|
||||
target.appendChild(post);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue