Skip to content

Made statistics table sortable - #676

Open
KoushikSagarr wants to merge 1 commit into
govdirectory:mainfrom
KoushikSagarr:fix/sort-statistics-table
Open

KoushikSagarr wants to merge 1 commit into
govdirectory:mainfrom
KoushikSagarr:fix/sort-statistics-table

Conversation

@KoushikSagarr

Copy link
Copy Markdown

Description

Makes the statistics table on the statistics page sortable using the existing sort-table functionality.

  • Enables sorting for the Country column.
  • Keeps the Contains column non-sortable.
  • Adds numeric sorting for Organizations and Contact points.
  • Loads the existing sort-table JavaScript for the statistics page.

Issue Reference

Fixes #664

Checklist

  • I have tested the changes locally, and they work as expected.
  • The code follows the project's coding standards and conventions.
  • I have updated relevant documentation (if needed).
  • I have added unit tests or performed manual testing where necessary.

Screenshots (applicable to user interface changes)

The statistics table was tested locally with the reduced dataset recommended by the maintainer due to Wikidata SPARQL service issues.

Sorting Test with 3 countries

Local test with the reduced three-country dataset (Bermuda, Greenland, and Malta), showing the sortable statistics table.

Testing note: Due to the current Wikidata SPARQL service issues, this was tested locally using a reduced dataset of three countries (Bermuda, Greenland, and Malta), following the maintainer's recommended approach.

@KoushikSagarr KoushikSagarr changed the title Make statistics table sortable Madestatistics table sortable Oct 5, 2026
@KoushikSagarr KoushikSagarr changed the title Madestatistics table sortable Made statistics table sortable Oct 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sortable statistics

1 participant