Hi guys,
I've a list of values from 1 to 8 and I want to delete the one that are not in the correct order like:
{1,2,3,4,6,5,7,8}->{1,2,3,4,7,8}
Thus mantaining the fact that there is an increasing order.
I tought that deletecases maybe useful but I'm not able to make Mathematica check value within the same list.
Any Ideas?
Thanks a lot