# Array sorting

**URL:** <https://forum.kirupa.com/t/array-sorting/302976>\
**Category:** Uncategorized\
**Created:** [January 11, 2010, 10:31pm UTC](https://forum.kirupa.com/t/array-sorting/302976 "2010-01-11T22:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freeseus](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@Freeseus](https://forum.kirupa.com/u/Freeseus)\
**Post date:** [January 11, 2010, 10:31pm UTC](https://forum.kirupa.com/t/array-sorting/302976/1 "2010-01-11T22:31:23Z")

</div>

Does anyone know how to sort an array based on the length of the instance name?

I have an array full of instance names and they are different lengths. I need them to sort based on the number of chars. Ie… Reallylongword, notaslong, short
