<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_deffacts(self):
 """Return the existing deffacts sorted by the internal order"""

        return sorted(self._get_by_type(DefFacts), key=lambda d: d.order)