sort container estado by proximo container