Currently, package configuration is ordered alphabetically by the configuration key name. With the introduction of the use of json-schema for configuration, could there be a better way to allow us to order configuration values?
Alphabetical ordering can cause very important configuration (that I would like to come first) to get lost among other options. A simple solution would be to not alphabetically order the config keys, and use them in the order specified in
module.exports = config: first: '' aSecond: ''
A more advanced solution would allow specifying an order:
module.exports = config: aSecond: title: 'Second' description: 'You should see this second in the list of package config' type: 'boolean' default: true order: 2 first: title: 'First' description: 'You should see this first in the list of package config' type: 'boolean' default: true order: 1
Either is preferable to the current technique. Thoughts?