From 776ea4d7fd86ecb57e7cf9505297b9c575380120 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 22 Mar 2024 19:36:06 -0500 Subject: [PATCH] Website: Update order of columns on osquery schema table pages. (#17818) Related to: #17727 Changes: - Updated the `build-static-content` script to sort the columns of tables alphabetically by the name of the column when the pages for fleetdm.com/tables are generated. --- website/scripts/build-static-content.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/build-static-content.js b/website/scripts/build-static-content.js index 67060ea9ac..02f437763d 100644 --- a/website/scripts/build-static-content.js +++ b/website/scripts/build-static-content.js @@ -704,7 +704,7 @@ module.exports = { } // Iterate through the columns of the table, we'll add a row to the markdown table element for each column in this schema table - for(let column of table.columns) { + for(let column of _.sortBy(table.columns, 'name')) { if(!column.hidden) { // If the column is hidden, we won't add it to the final table. // Create an object for this column to add to the osqueryTables config. let columnInfoForQueryReports = {