order array created and sorted