From 4b913452cb93ec40f51aff211530a4c9643b1190 Mon Sep 17 00:00:00 2001 From: Lucie Milan Date: Thu, 7 Dec 2023 17:34:48 +0100 Subject: [PATCH] sort integration tables alphabetically --- _includes/integrations/templates/schemas/schemas.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_includes/integrations/templates/schemas/schemas.html b/_includes/integrations/templates/schemas/schemas.html index b3749205e..4c07f24e0 100644 --- a/_includes/integrations/templates/schemas/schemas.html +++ b/_includes/integrations/templates/schemas/schemas.html @@ -7,6 +7,10 @@ {% assign filename = integration.name | append: "-" | append: version | append: "-tables" %} {% assign tables = site.data.taps.schemas.[integration.name].[version].[filename].tables %} +{% if tables.size > 0 %} + {% assign tables = tables | sort : "name" %} +{% endif %} + {% assign fk-filename = integration.name | append: "-" | append: version | append: "-foreign-keys" %} {% assign fk-tables = site.data.taps.schemas.[integration.name].[version].[fk-filename].tables %}