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 6dcb7b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/_layouts/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ <h2>{{ table.name }}</h2>
<th>Unit</th>
<th>Description [UCD]</th>
</tr>
{%- for col in table.columns %}
{% assign sorted_by_name = table.columns | sort: 'name' %}
{% assign sorted_columns = sorted_by_name | sort: 'tap:column_index' %}
{% 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 6dcb7b7

Please sign in to comment.