- added sorting for tests