Order objects via toArray.