<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_reference_template(self, ref_type):
 """Return the reference template for the type as an ordered dictionary. Zotero.item_template() caches data after the first API call. """

        template = self._zotero_lib.item_template(ref_type)
        return OrderedDict(sorted(template.items(), key=lambda x: x[0]))