sorting apps tests results to avoid non determenistic ordering that causes tests to fail from py2 to py3