# \[FMX\] Sort() function for Arrays

**URL:** https://forum.kirupa.com/t/fmx-sort-function-for-arrays/101391
**Category:** Uncategorized
**Created:** [February 9, 2004, 3:56pm UTC](https://forum.kirupa.com/t/fmx-sort-function-for-arrays/101391 "2004-02-09T15:56:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dots](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dots](https://forum.kirupa.com/u/Dots)
#### Post date: [February 9, 2004, 3:56pm UTC](https://forum.kirupa.com/t/fmx-sort-function-for-arrays/101391/1 "2004-02-09T15:56:31Z")

</div>

Just a quick question about the sort() function for arrays in Flash MX. How efficient is it? I am currently developing a flash application that will need to read in hundreds of records from a database and sort them.

speed is crucial. Which is better? to use the built in sort() function or to create my own shell-sort?

I’m relatively new to actionscript, but i have strong experience developing (and sorting) in other languages.

Thanks,
