feat: boards with statuses fetch

This commit is contained in:
2025-08-03 13:40:09 +04:00
parent 624c94155c
commit 5435750fb5
21 changed files with 265 additions and 106 deletions

View File

@ -1,17 +1,17 @@
import { LexoRank } from "lexorank";
type LexorankSortable = {
rank: string;
lexorank: string;
};
export function compareByLexorank<T extends LexorankSortable>(
a: T,
b: T
): -1 | 1 | 0 {
if (a.rank < b.rank) {
if (a.lexorank < b.lexorank) {
return -1;
}
if (a.rank > b.rank) {
if (a.lexorank > b.lexorank) {
return 1;
}
return 0;