Instructions Start playing Algorithm Reset

Instructions

1. Aim is to sort the list in ascending order starting from Left to right.
2. Place the smallest card in the left most position and largest in the right most.
3. To sort the list drag and drop the cards into its valid position.
4. If it is a valid move, the card will swap it's position or else it won't get dropped there.
5. Valid move will be awarded 1 point and an invalid move will subtract 1 point.
6. Repeat the same procedure, for all the positions amongst the remaining array which is not sorted as yet.

Activity Panel

No activity recorded yet

Your every move will be recorded in the activity panel.
Valid and invalid moves will be displayed in
different colors.

Score Panel

Valid Moves

Invalid Moves

Total Score

Algorithm

1. Choose any index value as pivot, prefereably the right-most number.
2. Now compare the numbers beginning from left with the pivot.
3. Drag and drop all the numbers smaller than the pivot to the left.
4. If all the numbers on the left are smaller than the pivot, the pivot moves to its position.
5. Choose another pivot value and follow the same procedure.
6. Repeat until the list is sorted in ascending order.