sa Swap the first 2 elements at the top of stack a. sb Swap the first 2 elements at the top of stack b. ss sa and sb at the same time. ra Shift up all elements of stack a by 1, the first element ...
Push swap takes any set of numbers as arguments and prints every instruction needed to sort all numbers. There are 2 stacks, stack A and stack B. Initially all numbers are pushed into stack A, stack B ...