GitHub user kinow opened a pull request:
https://github.com/apache/jena/pull/237
JENA-1313: compare using a Collator when both literals are tagged with same
language
Mimics the behaviour of Dydra described
[here](http://blog.dydra.com/2015/05/06/collation).
When there are strings with the same language, then instead of simply
comparing the text, it uses
[java.text.Collator](https://docs.oracle.com/javase/7/docs/api/java/text/Collator.html)
and the language locale to compare strings.
This does not create a collate:collate function as described in JENA-1313
as a possible solution, but could be still useful for users that expect the
sort results to follow the values' language collation.
Needs further tests and discussion.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kinow/jena JENA-1313-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/237.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #237
----
commit fdcfc6307d7d0f4cbd850adeeb48d3ca9300c266
Author: Bruno P. Kinoshita <[email protected]>
Date: 2017-04-12T12:44:42Z
JENA-1313: compare using a Collator when both literals are tagged with same
language
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---