                 // Special handling for FOCI (treat as boolean and sort descending first)
                    if (column === "foci") {
                        valA = valA.toLowerCase() === "true" ? 1 : 0;
                        valB = valB.toLowerCase() === "true" ? 1 : 0;
                        return currentSortOrder === "asc" ? valA - valB : valB - valA;
                    }

                    // Sort boolean values ("true"/"false") correctly
                    if (column === "enabled") {
        