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

Alphabetical index is not in natural sort order #559

Closed
henriyli opened this issue Oct 20, 2016 · 7 comments
Closed

Alphabetical index is not in natural sort order #559

henriyli opened this issue Oct 20, 2016 · 7 comments
Labels
bug size-large more than 2 days
Milestone

Comments

@henriyli
Copy link
Collaborator

At which URL did you encounter the problem?

http://finto.fi/yso/fi/index/T

What steps will reproduce the problem?

  1. Scroll to the bottom of the listing
  2. Wait for additional results

What is the expected output? What do you see instead?

Expected to get a natural sort order for the listing. I'm seeing š-character at the end of the list. For example: tšekin kieli comes after töyhtöhyyppä.

What browser did you use? (eg. Firefox, Chrome, Safari, Internet explorer)

Firefox

@henriyli henriyli added this to the 1.9 milestone Oct 20, 2016
@henriyli
Copy link
Collaborator Author

The sorting is done in the sparql query. Since the results are limited and then offset in the second query sorting the results afterwards isn't really an option.

ORDER BY LCASE(IF(BOUND(?alabel), STR(?alabel), STR(?label)))

I'm not sure what we should do here. After the results are completely loaded (after the second query) the sorting could be done in javascript but that doesn't fix the first set of results that have been limited.

@osma
Copy link
Member

osma commented Oct 24, 2016

I asked about this on the Jena users' mailing list: http://jena.markmail.org/thread/v2bvsnsza5ksl2cv

@osma osma added the may slip label Mar 6, 2017
@osma
Copy link
Member

osma commented Mar 6, 2017

This turns out to be difficult. It would require changes to Jena so that it would sort language-specific collation.

@osma osma closed this as completed Mar 6, 2017
@osma osma reopened this Mar 6, 2017
@osma osma modified the milestones: Next Tasks, 1.9 Mar 6, 2017
@osma osma added the size-large more than 2 days label Mar 21, 2017
@osma
Copy link
Member

osma commented Mar 28, 2017

See discussion on Jena users list: http://markmail.org/message/v2bvsnsza5ksl2cv

@osma
Copy link
Member

osma commented Mar 30, 2017

Opened a JIRA issue on the Jena side: https://issues.apache.org/jira/browse/JENA-1313

@kinow
Copy link
Collaborator

kinow commented Nov 21, 2017

@osma can this one be closed too now? Or do we have to wait for the deployment and confirmation that it's working as expected?

@henriyli henriyli modified the milestones: Next Tasks, 1.10 Dec 22, 2017
@henriyli
Copy link
Collaborator Author

Seems to work very well now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug size-large more than 2 days
Projects
None yet
Development

No branches or pull requests

3 participants