# Change the order of the rows Array

**URL:** <https://discourse.julialang.org/t/change-the-order-of-the-rows-array/35449>\
**Category:** General Usage\
**Created:** [March 3, 2020, 10:04am UTC](https://discourse.julialang.org/t/change-the-order-of-the-rows-array/35449 "2020-03-03T10:04:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)\
**Post date:** [March 3, 2020, 10:04am UTC](https://discourse.julialang.org/t/change-the-order-of-the-rows-array/35449/1 "2020-03-03T10:04:18Z")

</div>

This code works, but my iterator is part of a large array and I am looking for any simplest way to scroll tables rows than with hat like below? (for any event rows to move to end )

```julia
julia> lista
5×1 Array{Int64,2}:
 1
 2
 3
 4
 5
 
 if i==2 lista=vcat(lista[lista[:,1].!=i,:],lista[lista[:,1].==i,:]); end
println(i,lista)

1[1; 3; 4; 5; 2]
3[1; 3; 4; 5; 2]
4[1; 3; 4; 5; 2]
5[1; 3; 4; 5; 2]
2[1; 3; 4; 5; 2]

```
