export sortArrayOfObjects