{% include data.html %}
<table>
  <thead>
    <tr><th>Organisation</th><th>Number of PIDs</th></tr>
  </thead>
  {% for org in orgs %}
    <tr>
      <th><a href="{{org.url}}">{{org.title}}</a></th>
      <tr>{{ pids | where:"owner",org.title | size }}</tr>
    </tr>
  {% endfor %}
</table>

{% include data.html %}
<table>
  <thead>
    <tr><th>Organisation</th><th>Number of PIDs</th></tr>
  </thead>
  {% for org in {{orgs|sort:"title"}} %}
    <tr>
      <th><a href="{{org.url}}">{{org.title}}</a></th>
      <td>{{ pids | where:"owner",org.title | size }}</td>
    </tr>
  {% endfor %}
</table>

Fix HTML issue, sort orgs by title
Fix HTML issue, sort orgs by title