If you want the "B then C then other letters" sorting rule to apply to the entire string, not just the first letter, use a custom Collator
.
Example
String addOnRule = "&b,B<c,C<a,A"; // Sort B then C before A
RuleBasedCollator standardCollator = (RuleBasedCollator) Collator.getInstance(Locale.US);
RuleBasedCollator customCollator = new RuleBasedCollator(standardCollator.getRules() + addOnRule);
String[] strings = { "a: foo", "b: bar", "c: foo", "d: bar", "aad", "aac", "aab", "aaa" };
Arrays.sort(strings, customCollator);
System.out.println(Arrays.toString(strings));
Output
[b: bar, c: foo, a: foo, aab, aac, aaa, aad, d: bar]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…