alkacon/opencms-core — pull request #263 by parakelian (2014-06-20 04:53:07+00:00)
Title: Preserve formatter config settings order

When editing a formatter config file and switching to the **Supported settings** tab, there's a list of settings. These settings can be re-ordered in the UI with the *move up* and *move down* buttons. But when it comes time to display these settings in the ADE (element settings), they show up in a random order (or more precisely, their order looks random because it's based on hashCode() since HashMap is being used).

By changing the underlying data structure to LinkedHashMap, the insertion order is preserved, and it follows the order defined in the formatter config file. This allows the user to re-order the settings any which way they like.