Skip to content

Munge title strings for better sorting#187

Merged
bellisk merged 3 commits intockan:masterfrom
bellisk:munge-title-strings-for-better-sorting
Jul 22, 2025
Merged

Munge title strings for better sorting#187
bellisk merged 3 commits intockan:masterfrom
bellisk:munge-title-strings-for-better-sorting

Conversation

@bellisk
Copy link
Contributor

@bellisk bellisk commented Jul 21, 2025

If we have the following four showcases and sort the showcase index page by 'Name Ascending', we ought to see:

  • anna's Showcase
  • Bob's Showcase
  • Ömer's Showcase
  • "Petra"'s Showcase

With the current state of the code, we would see:

  • "Petra"'s Showcase
  • Bob's Showcase
  • anna's Showcase
  • Ömer's Showcase

bellisk added 2 commits July 21, 2025 15:01
This removes special characters, converts accented characters to ascii, and lowercases the whole string.
Also use single-quotes for style consistency.
@bellisk bellisk force-pushed the munge-title-strings-for-better-sorting branch from 193b2ed to 568068c Compare July 22, 2025 07:44
@bellisk bellisk merged commit cd0d00e into ckan:master Jul 22, 2025
3 checks passed
@bellisk bellisk deleted the munge-title-strings-for-better-sorting branch July 22, 2025 07:53
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.

2 participants