From ab171583f8680b47b35699bacafb6a1f65563571 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 28 Jul 2012 11:24:08 +0200 Subject: [PATCH] Always keep the properties sorted. --- src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java index 3b72223..74bf524 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Properties.java @@ -17,10 +17,10 @@ package net.pterodactylus.demoscenemusic.data; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; +import java.util.TreeMap; /** * Container for custom properties that can be attached to all data containers. @@ -31,7 +31,7 @@ import java.util.Map.Entry; public class Properties implements Iterable> { /** The properties. */ - private final Map properties = new HashMap(); + private final Map properties = new TreeMap(); /** The “dirty” flag. */ private boolean dirty = false; -- 2.7.4