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

Alphasort field entries #395

Closed
hackartisan opened this issue Feb 13, 2017 · 2 comments
Closed

Alphasort field entries #395

hackartisan opened this issue Feb 13, 2017 · 2 comments

Comments

@hackartisan
Copy link
Contributor

Descriptive summary

With rdf2 values may come back in different orders. It could be disorienting for users if things jump around on page reload. We should alphasort here https://github.com/projecthydra-labs/hyrax/blob/master/app/renderers/hyrax/renderers/attribute_renderer.rb#L29. and maybe there are other places?

Should this be an option to attribute_to_html?

@agoslen
Copy link

agoslen commented Jun 30, 2021

SMIG has been discussing open issues labeled metadata. We discussed this issue on 6/22:

  • SMIG has recently made the recommendation (for Ordering metadata fields with multiple values #4781) that Creator, Contributor, and Title are the multi-value fields where ordering would matter most; but this order would be context-dependent, rather than purely alphabetical.
  • Would it be desirable for alphasort to be a fallback for field ordering, where user-supplied order is not possible?
    • No; group consensus is that alphasort is not necessarily better than the out-of-the-box chaos of RDF nonsorting.
    • Alphasort implies an order and context that is artificial. If this is desirable to a local instance, it could be done locally.

no-reply pushed a commit that referenced this issue Jun 30, 2021
following a suggestion in #395, introduce a `:sort` option for renderers and a
startlingly naive implementation.
@no-reply
Copy link
Contributor

thanks @agoslen. i think on this basis we should close this ticket out and subsume further discussion into #4781.

speaking to the original suggestion: #5010 provides a very simple implementation of a :sort option for attributes_to_html

no-reply pushed a commit that referenced this issue Jul 15, 2021
following a suggestion in #395, introduce a `:sort` option for renderers and a
startlingly naive implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

5 participants