# Re-order array in ascending order

**URL:** https://forum.kirupa.com/t/re-order-array-in-ascending-order/284627
**Category:** Uncategorized
**Created:** [March 21, 2009, 2:38am UTC](https://forum.kirupa.com/t/re-order-array-in-ascending-order/284627 "2009-03-21T02:38:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)
#### Post date: [March 21, 2009, 2:38am UTC](https://forum.kirupa.com/t/re-order-array-in-ascending-order/284627/1 "2009-03-21T02:38:40Z")

</div>

Hi

I have an array, and I add info dynamically into it. I need some way to re-order the array into ascending order.

Another thing. How can I add a value in the first position of the array pulling keeping all the other values jumping to the next position.

thanks
