Java RuleBasedCalator未按预期排序,引号中带有特殊字符(破折号)

Java RuleBasedCalator未按预期排序,引号中带有特殊字符(破折号),java,collation,Java,Collation,我希望破折号在空格之后。但它不起作用。破折号将被忽略,即使它们被括在引号中。为什么? 文本参数:文本参数是任意字符序列, 不包括特殊字符(即普通空白字符 [0009-000D,0020]和规则语法字符[0021-002F,003A-0040, 005B-0060、007B-007E])。如果需要这些字符,可以将 它们用单引号括起来(例如,与=>'&')。请注意,未引用 忽略空白字符;e、 g.b.c被视为bc 已排序文件: bottom bottom antiquark bottom dolla

我希望破折号在空格之后。但它不起作用。破折号将被忽略,即使它们被括在引号中。为什么?

文本参数:文本参数是任意字符序列, 不包括特殊字符(即普通空白字符 [0009-000D,0020]和规则语法字符[0021-002F,003A-0040, 005B-0060、007B-007E])。如果需要这些字符,可以将 它们用单引号括起来(例如,与=>'&')。请注意,未引用 忽略空白字符;e、 g.b.c被视为bc

已排序文件:

bottom
bottom antiquark
bottom dollar
bottom-dweller
bottom-dwelling
bottom feeder
bottom-feeder
bottom feeders
bottom feeding
bottome
bottomfeeder
bottomfeeders
预期结果:

bottom
bottom antiquark
bottom dollar
bottom feeder
bottom feeders
bottom feeding
bottom-dweller
bottom-dwelling
bottom-feeder
bottome
bottomfeeder
bottomfeeders
bottom
bottom antiquark
bottom dollar
bottom-dweller
bottom-dwelling
bottom feeder
bottom-feeder
bottom feeders
bottom feeding
bottome
bottomfeeder
bottomfeeders
bottom
bottom antiquark
bottom dollar
bottom feeder
bottom feeders
bottom feeding
bottom-dweller
bottom-dwelling
bottom-feeder
bottome
bottomfeeder
bottomfeeders