I need to create a highscore system for all players in a game and keep a track of sorted scores for each player. Players have their own UUIDs assigned, and their score must be stored in long values (it varies from small numbers to billions).
Currently, my implementation would sort the map every time a new score is entered (old scores are overridden by same user) and saves into a LinkedHashMap. Is there a more efficient way to handle this?