Sort system messages in reversed chronological order, with a unit test

Fix for https://github.com/Rise-Vision/common-header/issues/393
@settinghead it's funny that you first sort them in direct order and then reverse instead of sorting them in reverse order right away.