diff --git a/src/components/Table.astro b/src/components/Table.astro index d6757be..fabc8a0 100644 --- a/src/components/Table.astro +++ b/src/components/Table.astro @@ -73,7 +73,13 @@ const id = `table-${Math.random().toString(36).slice(2, 9)}`; col.width ? `width:${col.width}` : "" } data-sort-key={ - col.sortable ? col.key : undefined + col.sortable + ? col.alias + ? col.alias + + "." + + (col.key as any) + : col.key + : undefined } >