Merge pull request #138 from fnuecke/master

Added ConfigRenderOptions entry for value sorting in objects.
This commit is contained in:
Havoc Pennington 2014-02-05 15:16:45 -05:00
commit f27265b3f5

View File

@ -7,6 +7,7 @@ import java.io.ObjectStreamException;
import java.io.Serializable; import java.io.Serializable;
import java.util.AbstractMap; import java.util.AbstractMap;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
@ -382,7 +383,9 @@ final class SimpleConfigObject extends AbstractConfigObject implements Serializa
} }
int separatorCount = 0; int separatorCount = 0;
for (String k : keySet()) { String[] keys = keySet().toArray(new String[size()]);
Arrays.sort(keys);
for (String k : keys) {
AbstractConfigValue v; AbstractConfigValue v;
v = value.get(k); v = value.get(k);