Hive 0.11 (May, 15 2013) and Rank() within a category

libjack recommended that I upgrade to Hive 0.11 (May, 15 2013) to take advantage of Windowing and Analytics functions.
His recommendation worked immediately, but it took a while for me to
find the right syntax to sort within categories. This blog entry records
the correct syntax.