Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(table): inconsistent boolean column sorting
Elian Doranafe99b240f06
diff --git a/apps/client/src/widgets/collections/table/columns.tsx b/apps/client/src/widgets/collections/table/columns.tsxindex 9a500f0111..3dc92e8958 100644--- a/apps/client/src/widgets/collections/table/columns.tsx+++ b/apps/client/src/widgets/collections/table/columns.tsx@@ -29,7 +29,11 @@ const labelTypeMappings: Record<ColumnType, Partial<ColumnDefinition>> = {},boolean: {formatter: "tickCross",- editor: "tickCross"+ editor: "tickCross",+ // Values arrive as strings ("true"/"false") from stored labels but as real booleans+ // once toggled via the editor; the boolean sorter normalizes both, whereas the default+ // string sorter treats boolean `false` as empty and orders it inconsistently.+ sorter: "boolean"},date: {editor: "date",