# Flash and the Three R's

**URL:** <https://forum.kirupa.com/t/flash-and-the-three-rs/197640>\
**Category:** flash\
**Created:** [August 17, 2006, 10:18pm UTC](https://forum.kirupa.com/t/flash-and-the-three-rs/197640 "2006-08-17T22:18:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lenny/32/942_2.png) [@lenny](https://forum.kirupa.com/u/lenny)\
**Post date:** [August 17, 2006, 10:18pm UTC](https://forum.kirupa.com/t/flash-and-the-three-rs/197640/1 "2006-08-17T22:18:57Z")

</div>

Why is it that when i have my array of numbers, say

```auto
 nvalues = new array("5", "6", "7", "66");

```

and sort them…

```auto
 nvalues.sort();

```

and then trace the answer…

```auto
 trace(nvalues[0]+", "+nvalues[1]+", "+nvalues[2]+", "+nvalues[3]);

```

I get this:

5, 6, 66, 7

I thought it was fairly obvious that 66 is greater 7…

How do i fix this?!

Most irritated,

Len:(
