Closed simonw closed 4 years ago
On the table that displays the bug that looks like this:
[
"Link",
"rowid",
// ...
"capacity_mw",
"latitude ▼",
"longitude",
"primary_fuel",
// ...
]
The next release of Datasette adds a new data-column
attribute which could help fix this:
<th class="col-pk" scope="col" data-column="pk" data-is-pk="0">
<a href="/fixtures/facetable?_sort_desc=pk" rel="nofollow">pk ▼</a>
</th>
I can fix the plugin right now to detect if data-column
is available and, if not, to fall back on th.textContent.trim()
.
e.g. https://global-power-plants.datasettes.com/global-power-plants/global-power-plants?_sort=latitude