Skip to content

Commit

Permalink
Sort schema columns first by TAP column index and then name
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Sep 30, 2024
1 parent 41840ef commit 24ccd7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browser/_layouts/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ <h2>{{ table.name }}</h2>
<th>Unit</th>
<th>Description [UCD]</th>
</tr>
{%- for col in table.columns %}
{%- set sorted_columns = table.columns | sort(attribute='tap:column_index') | sort(attribute='name') %}
{%- for col in sorted_columns %}
<tr id="{{ col['@id'] | remove:'#' }}">
<td class="column-name">
<a href="#{{ col['@id'] | remove:'#' }}">{{ col.name }}</a>
Expand Down

0 comments on commit 24ccd7b

Please sign in to comment.