# Sort in an array

**URL:** <https://forum.kirupa.com/t/sort-in-an-array/268570>\
**Category:** flash\
**Created:** [August 15, 2008, 11:08am UTC](https://forum.kirupa.com/t/sort-in-an-array/268570 "2008-08-15T11:08:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [August 15, 2008, 11:08am UTC](https://forum.kirupa.com/t/sort-in-an-array/268570/1 "2008-08-15T11:08:53Z")

</div>

is the sort method the only function that can reposition elements in an array, i have an array with four elements, depending on the situation, i would like to grab one element and move it either to the top or bottom of the array
