Created by: joshua-warburton
Previously codecsort.py was only applied to a single codec at a time and thus couldn't allocate enums uniquely as it didn't know about the enum values in other files. This patch simplifies the process of calling codecsort.py so that it can consider all the codecs at once, and thus rewrite them as needed.
It also changes the default mode so that it returns an exit code of 1 if it detects a rewrite is needed making checking the order easier.
Issue: #5326