Make sure configuration lines are sorted

The keys in the JSON channel configuration dictionary are now sorted
using Python’s sorted() function, meaning that the runtime order is
consistent and key naming can be used to dictate a strict order