rotation of elements within a list
<p>I have a List which contains 5 element [a,b,c, d, e]. Based on user selection I would like to change the display order and would like to know if there are functions which can give me a newly ordered list.</p>

<pre><code>e.g. If user selects d, e to move 1 position up, the resultant order will be [a,b,d,e,c]
e.g. If user selects b, e to move 1 position up, the resultant order will be [b,a,c,e,d]
e.g. If user selects b, d, e to move 1 position up, the resultant order will be [b,a,d,e,c]
</code></pre>

<p>Is there an out of the box function which can do this?</p>
