Fix todo sorting
This commit is contained in:
parent
98f925dc84
commit
b99bb7dcbf
@ -17,8 +17,8 @@ export const GuildTodos = () => {
|
||||
|
||||
const sortedTodos = guildTodos
|
||||
.sort((a, b) => (a.id > b.id ? -1 : 1))
|
||||
.sort((a, b) => (a.channel_id < b.channel_id ? 0 : 1));
|
||||
let prevChannel;
|
||||
.sort((a, b) => (a.channel_id === b.channel_id ? 0 : a.channel_id > b.channel_id ? -1 : 1));
|
||||
let prevChannel: string;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user