Locale-aware comparison not used by MERGE_COMPATATOR

Description

SortCollectorImpl's MERGE_COMPATATOR class simply compares object values rather than using the object's comparator.

This makes localized strings be sorted in wrong order. Although StringLocaleComparatorSource provides locale-specific collation in its compare() method, the value() method returns a plain String that's not necessarily compared properly.

Environment

None

Status

Assignee

John Wang

Reporter

Jozsef Illes

Labels

None

Components

Affects versions

3.2.0

Priority

Major