Always willing to help.
Moving the arms is a combination of turns and rolls, generally. This can be done at runtime, or beforehand and the body's position can be saved as a pose. Poses are easier to use, but more restrictive.
Bubble sort is easy enough to do. I actually made an example of it just for laughs. Here's the link:
http://www.alice.org/community/attac...9&d=1255766808
The button switches are easy enough to get working as well, but like you said, one problem at a time.
Let me know what you'd like to work on first.