<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _topological_sort(self, targets):
 """Topologically order a list of targets"""


    target_set = set(targets)
    return [t for t in reversed(sort_targets(targets)) if t in target_set]