fixed error that would resort in unsorted array