;Task:
Given a jumbled list of the numbers &nbsp; '''1''' &nbsp; to &nbsp; '''9''' &nbsp; that are definitely &nbsp; ''not'' &nbsp; in 
ascending order.

Show the list, &nbsp; and then ask the player how many digits from the 
left to reverse. 

Reverse those digits, &nbsp; then ask again, &nbsp; until all the digits end up in ascending order.


The score is the count of the reversals needed to attain the ascending order.


Note: Assume the player's input does not need extra validation.


;Related tasks:
* &nbsp; [[Sorting algorithms/Pancake sort]]
* &nbsp; [[wp:Pancake sorting|Pancake sorting]].
* &nbsp; [[Topswops]]
<br><br>

