def METHOD_NAME(self, similarity_matrix, window_ms=None):
    errors = []
    similarities = []
    error = self._get_slice(window_ms)
    for r, u1 in enumerate(self.good_gt):
        for c, u2 in enumerate(self.good_gt):
            ind1 = self.sorting1.id_to_index(u1)
            ind2 = self.sorting1.id_to_index(u2)
            similarities.append(similarity_matrix[ind1, ind2])
            errors.append(error[r, c])
    errors = np.array(errors)
    similarities = np.array(similarities)
    order = np.argsort(similarities)
    similarities = similarities[order]
    errors = errors[order, :]
    return similarities, errors