Sort channels by position in the server's channel list

Closes #78
This commit is contained in:
chylex 2020-06-25 15:47:12 +02:00
parent 1992bf6b22
commit 8361c58b7c

View File

@ -114,6 +114,7 @@ var STATE = (function(){
return as.type.localeCompare(bs.type, "en") ||
as.name.toLocaleLowerCase().localeCompare(bs.name.toLocaleLowerCase(), undefined, { numeric: true }) ||
ac.position - bc.position ||
ac.name.toLocaleLowerCase().localeCompare(bc.name.toLocaleLowerCase(), undefined, { numeric: true });
});
};