Re: How can I get java.util.Properties.store() to sort
Thursday, December 6, 2001 08:27 AM
Maybe is it not such a good idea to put your values into a Properties object to store your data. Your data in your treemap is already sorted, so when you put your information into a Hashtable, you unsort it, and then you want to ressort it, which is a lost of time. Anyway, I think what you are trying to do is possible only if you subclass Propreties and write your own store method, but you might as well subclass TreeMap and create a store method.