Skip to content
New issue

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

排序问题 #17

Closed
hakulatata opened this issue Nov 6, 2017 · 1 comment
Closed

排序问题 #17

hakulatata opened this issue Nov 6, 2017 · 1 comment

Comments

@hakulatata
Copy link

比如自定义星期一,星期二,星期三,会出现乱序,是因为调用了coolection.sort(),还是因为没有用hashset()

@imkarl
Copy link
Owner

imkarl commented Nov 7, 2017

coolection.sort()hashset 都会导致乱序
如果想保证顺序,就不要调用coolection.sort()并且用List代理Set

@imkarl imkarl closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants