We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce1ccb4 + 1750ff0 commit 92d1c8eCopy full SHA for 92d1c8e
app/src/processing/app/Preferences.java
@@ -734,11 +734,10 @@ static protected void save() {
734
// Fix for 0163 to properly use Unicode when writing preferences.txt
735
PrintWriter writer = PApplet.createWriter(preferencesFile);
736
737
- Enumeration e = table.keys(); //properties.propertyNames();
738
- while (e.hasMoreElements()) {
739
- String key = (String) e.nextElement();
+ String[] keys = (String[])table.keySet().toArray(new String[0]);
+ Arrays.sort(keys);
+ for (String key: keys)
740
writer.println(key + "=" + ((String) table.get(key)));
741
- }
742
743
writer.flush();
744
writer.close();
0 commit comments