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

Fix for https://github.com/Rise-Vision/common-header/issues/393
Merge pull request #399 from settinghead/master

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