def _exist_not_sorted_demand(self, _demands):
    not_sorted_demand = None
    for key in _demands:
        demand = _demands[key]
        if (demand.sort_base != 1):
            not_sorted_demand = demand
            break
    return not_sorted_demand
def _exist_not_sorted_demand(self, _demands):
    not_sorted_demand = None
    for key in _demands:
        demand = _demands[key]
        if (demand.sort_base != 1):
            not_sorted_demand = demand
            break
    return not_sorted_demand