def __insert_cluster(self, cluster):
for index in range(len(self.__queue)):<EOL><INDENT>if cluster.distance < self.__queue[index].distance:<EOL><INDENT>self.__queue.insert(index, cluster)<EOL>return<EOL><DEDENT><DEDENT>self.__queue.append(cluster)<EOL>
!
        @brief Insert cluster to the list (sorted queue) in line with sequence order (distance).

        @param[in] cluster (cure_cluster): Cluster that should be inserted.