 Default: Ascending

            function sortTable(column) {
                const tableBody = document.getElementById("appTable");
                const rows = Array.from(tableBody.querySelectorAll("tr"));

                // Set custom default sorting for specific columns
                if (currentSortColumn !== column) {
                    if (column === "graph_api_permissions" || column === "foci") {
                        currentSortOrder = "desc"; // Default to descending
                    } els