# Does @distributed have any guarantees regarding order?

**URL:** <https://discourse.julialang.org/t/does-distributed-have-any-guarantees-regarding-order/16381>\
**Category:** General Usage\
**Tags:** distributed\
**Created:** [October 16, 2018, 2:30am UTC](https://discourse.julialang.org/t/does-distributed-have-any-guarantees-regarding-order/16381 "2018-10-16T02:30:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_Steimel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kenneth_steimel/32/9464_2.png) [@Kenneth\_Steimel](https://discourse.julialang.org/u/Kenneth_Steimel)\
**Post date:** [October 16, 2018, 2:30am UTC](https://discourse.julialang.org/t/does-distributed-have-any-guarantees-regarding-order/16381/1 "2018-10-16T02:30:47Z")

</div>

I’m running a parallel for loop with hcat as the reduction operation. Something like this

```julia
res = @distributed hcat for i=1:1000
    i
end

```

Is there any guarantee that i is in order? I saw some old pointers saying there was no guarantee but I tried it a dozen times on four processes and every time it came back sorted. Is this just a coincidence?
