@@ -0,0 +1,989 @@
+package net.sf.kerner.utils.collections.impl;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0Aimport java.util.Comparator;%0Aimport java.util.Enumeration;%0Aimport java.util.LinkedHashSet;%0Aimport java.util.List;%0Aimport java.util.Properties;%0Aimport java.util.Set;%0A%0Apublic class PropertiesSorted extends Properties %7B%0A%0A%09private static final long serialVersionUID = -3190096405009723488L;%0A%09%0A%09private final static IteratorToEnumerationTransformer%3CObject%3E t = new IteratorToEnumerationTransformer%3CObject%3E();%0A%0A%09@Override%0A%09public synchronized Enumeration%3CObject%3E keys() %7B%0A%09%09return t.transform(keySet().iterator());%0A%09%7D%0A%09%0A%09@Override%0A%09public synchronized Set%3CObject%3E keySet() %7B%0A%09%09Set%3CObject%3E keys = super.keySet();%0A%09%09List%3CObject%3E keyList = new ArrayList%3CObject%3E(keys);%0A%09%09Collections.sort(keyList, new Comparator%3CObject%3E() %7B%0A%09%09%09public int compare(Object o1, Object o2) %7B%0A%09%09%09%09return o1.toString().compareToIgnoreCase(o2.toString());%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09return new LinkedHashSet%3CObject%3E(keyList);%0A%09%7D%0A%0A%7D%0A

Introduce PropertiesSorted.