<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def loop_position(self):
 """Return the current sort in the loop"""

        for i, v in enumerate(self._sort_loop):
            if v == glances_processes.sort_key:
                return i
        return 0