I have a card game that contains a list of cards in a players hand from top to bottom and I need to check up to what point the cards list break from the order of small to large(from top to bottom). I am not able to use any sort of GUI's.
For example, cards in players hand: 23 24 12 5-check for the fifth element in the list that is properly sorted 4 3 2 1