I have initially thought of that method but that will work if the items are already sorted either ascendingly or descendingly but will not be 100% accurate if the items are not yet sorted since the first two items can be sorted and yet the third and succeeding ones can be unsorted.