Sugar/salt frosted around the top of a cup/mug Recently I managed to accidentally get a bunch of raw sugar crystals stuck to the rim of a mug of tea.  Drinking the tea over the sugar, being able to balance out the tartness and the sweetness as I liked was pretty amazing.  Is there an easy way to repeatedly 'stick' a bunch of sugar to the rim of a mug or glass?  I know that people do this with margaritas and the like, so I assume there must be an easy technique for doing it quickly, but I don't know one.

What is the quickest/best way to do it a lot of times fast?
Place the sugar (or salt) in a bowl or plate large enough to hold the glass (upside down)

Rub the rim of the glass with lemon (or lime, or use simple syrup) the rim should be wet and sticky.

Roll/Dip the rim of the glass in the bowl full of sugar.

In my experience, you need to leave the glass to dry for a few minutes to let the sugar or salt settle and dry properly; or long enough to prepare your drinks (or tea).

There are numerous video on the internets showing this.