Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querystring reader values are always forced to be alphabetically sorted when a title is specified for a vocabulary #161

Open
JeffersonBledsoe opened this issue Mar 5, 2025 · 0 comments · May be fixed by #160

Comments

@JeffersonBledsoe
Copy link
Member

translated = sorted(translated, key=lambda x: id_normalize(safe_text(x[0])))

While this is probably the desired output for most circumstances, if you want to manually sort the order of a vocabulary and have that reflected by the frontend (either in Classic or via REST API) such as with collective.taxonomy, this isn't possible. The values returned by getVocabularyValues are already an OrderedDict so this should be supported.

I've created a test to verify this: #160

See plone/plone.restapi#1854 for some context of how this was found

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 a pull request may close this issue.

1 participant