<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sort(self):
 """Sort by detection time. .. rubric:: Example UTCDateTime(1970, 1, 1, 0, 3, 20) UTCDateTime(1970, 1, 1, 0, 0) """

        self.detections = sorted(self.detections, key=lambda d: d.detect_time)
        return self