1
我想在包含法语口音的BlackBerry中对SimpleSortingVector进行排序。排序将具有重音的项目放在列表的最后。我如何分类黑莓将重音字符与不重叠的字符。 Collator似乎不工作,因为我相信我的JRE版本太低。我正在为JRE 4.5.0编写最低版本。黑莓 - 用口音排序
即
É= E
这里是我如何排序的向量:
ssv.setSortComparator(new Comparator()
{
public int compare(Object obj1, Object obj2)
{
String value = ((Item) obj1).getText();
String otherValue = ((Item) obj2).getText();
return value.compareTo(otherValue);
}
});
ssv.reSort();
感谢, DMAN