# Sorting arrays.. :S

**URL:** <https://forum.kirupa.com/t/sorting-arrays-s/178401>\
**Category:** flash\
**Created:** [February 10, 2006, 6:29am UTC](https://forum.kirupa.com/t/sorting-arrays-s/178401 "2006-02-10T06:29:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [February 10, 2006, 6:29am UTC](https://forum.kirupa.com/t/sorting-arrays-s/178401/1 "2006-02-10T06:29:37Z")

</div>

I have made me a manual sort function, because the normal sort function, and the sortOn function return resuolts like this

6,54,5,45,45,23,12,12

but nooo! mine does it too, any ideas?

```auto
function mSort() {
 for (var i = 0; i<nest.length; i++) {
  for (var j = 0; j<nest.length; j++) {
   if (nest*>nest[j]) {
    var temp = nest[j];
    nest[j] = nest*;
    nest* = temp;
    
   }
   trace(nest*)
  }
 }
 show = nest
}

```

help needed, must be easy, and im overlooking it
