We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private void sortData() { final Collator collator = Collator.getInstance(); Collections.sort(adapter.getData(), new Comparator() { @OverRide public int compare(Word o1, Word o2) { return collator.compare(o1.getName(), o2.getName()); } }); }
作者这一步是排序么?具体有什么作用?
The text was updated successfully, but these errors were encountered:
因为 App 提供了一个新增单词的功能,希望新单词插入在合适的位置,所有进行了重新排序。
Sorry, something went wrong.
No branches or pull requests
private void sortData() {
final Collator collator = Collator.getInstance();
Collections.sort(adapter.getData(), new Comparator() {
@OverRide
public int compare(Word o1, Word o2) {
return collator.compare(o1.getName(), o2.getName());
}
});
}
作者这一步是排序么?具体有什么作用?
The text was updated successfully, but these errors were encountered: