resorted array