[ticket/12639] Order the results correctly in the test

PHPBB3-12639