checking if the vector is sorted or not - if not sorted then give the out of order info