# Search for highest value

**URL:** <https://forum.kirupa.com/t/search-for-highest-value/176358>\
**Category:** flash\
**Created:** [January 23, 2006, 12:34pm UTC](https://forum.kirupa.com/t/search-for-highest-value/176358 "2006-01-23T12:34:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lewi\_p](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lewi\_p](https://forum.kirupa.com/u/lewi_p)\
**Post date:** [January 23, 2006, 12:34pm UTC](https://forum.kirupa.com/t/search-for-highest-value/176358/1 "2006-01-23T12:34:47Z")

</div>

Hi

If I have 4 movieclips that each contains a numeric variable…how could I compare all their values then sort the movieclips in decending order?

I assume I have to use some sort of **array** and maybe **createEmptyMovieClip()** but I’m not sure how to go about it…any ideas?

Thanks
