They are not always in preference order, the locale library has a test for this (as well as the one included here). We could duplicate the entire test suite if that's desired.