I have string variables of capacity which are "10 cups", "8 cups" and "4 cups". The command egen cap = group(capacity),label give
capacity cap
10 cups 1
8 cups 3
4 cups 2

How can I order the new variables (cap) to be
Capacity cap
10 cups 1
8 cups 2
4 cups 3.
Thank you