<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_formatter(name):
 """ Looks up a formatter class given a prefix to it. The names are sorted, and the first matching class is returned. """

    for k in sorted(_FORMATTERS):
        if k.startswith(name):
            return _FORMATTERS[k]