test: sort arrays since order isn't a promise with async process.