test_result: sort test results lines
We want to have FAILED test results before PASSED, to easily see the failed tests.
Apparently this was a local change on nexedi ERP5 for some time but the change got lost in last update. Let's commit it to make this permanent.