#TreeMap comparator not working as expected

1 messages · Page 1 of 1 (latest)

keen parcel
#

Hi, for some reason, using the Comparator.comparingInt comparator for a TreeMap puts 1006 after 10051 instead of before. I'm not sure how to change this behavior.

karmic jewelBOT
#

This post has been reserved for your question.

Hey @keen parcel! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.