Skip to content

[C++] Support string collation for sorting #27875

Closed as not planned
Closed as not planned

Description

@asfimport

Currently the C++ library orders strings lexicographically as bytestrings. We should implement the capability to change string sorting behavior based on locale settings for string collation.

Reporter: Ian Cook / @ianmcook

Note: This issue was originally created as ARROW-12046. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Mar 22, 2021

    @asfimport
    Author
  2. asfimport commented on Mar 22, 2021

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    The current locale is a global process setting, so Arrow shouldn't change it. What we may add is a "compare strings using the current locale" option, though.

  3. asfimport commented on Mar 22, 2021

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    Note this would only work probably if a UTF-8 locale is selected.

  4. asfimport commented on Apr 21, 2021

    @asfimport
    Author
  5. asfimport commented on Jun 28, 2021

    @asfimport
    Author
  6. asfimport commented on Oct 12, 2021

    @asfimport
    Author

    Benson Muite / @bkmgit:
    Compression will be helpful.  One way of sorting Mandarin is by stroke count, for which there is a table for unicode However, this is not the only way so allowing developers freedom to create appropriate comparison functions is useful. Minimal-icu-collation also seems helpful, but is not vectorized. Javascript has a specification for comparison functions - while there will be a loss of efficiency, something like this seems most appropriate. An example of using this can be found in this DataTables blog. QString has a locale aware comparison but licensing only allows incorporation of Apache code into GPL or LGPL code, and not the other way round.

  7. asfimport commented on Dec 14, 2021

    @asfimport
    Author

    Benson Muite / @bkmgit:
    A related issue is the between kernel for string comparisons https://issues.apache.org/jira/browse/ARROW-9843

  8. asfimport commented on Dec 28, 2021

    @asfimport
    Author
  9. github-actions commented on Jan 16, 2026

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  10. added
    Status: stale-warningIssues and PRs flagged as stale which are due to be closed if no indication otherwise
    on Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions