A sorted autocompleter

Try typing in 'a', 'e' or 'p' below.

This time the groups will appear in descending order.