owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.4k stars 228 forks source link

Topics are not sorted according to manual sort order set in Wordpress #1896

Closed mlbrgl closed 1 year ago

mlbrgl commented 1 year ago

Description

Energy and environment is the first listed category in the WP backend...

Screenshot 2023-02-02 at 16 53 30

... but not in the navigation menu

Screenshot 2023-02-02 at 16 53 40

Expected behaviour

"Energy and environment" should be first listed in the navigation menu (and all other navigation items should respect the manual sort order defined in the backend)

Additional context

The WPGraphQL query doesn't seem to honor the orderby clause (anymore?).

mlbrgl commented 1 year ago

Workaround provided in https://github.com/owid/owid-grapher/pull/1961/commits/2b343fe6e5c5e691778ca0e6b4d83c0d3a0087ba: use the description field containing "01", "02", "03", etc. to order categories.