sort objects by two attributes.

http://www.numbernut.com/basic/activities/symbol_4card_shapes.shtml