array sort, search done