I still use MrPlow addon for that. It has scriptable commands (with various options for specific sort/stack methods, which is nice) and still works in 6.0.x.

http://www.curse.com/addons/wow/mr-plow