[ticket/12273] Sort arguments alphabetically before exporting

PHPBB3-12273