# getFontList() does not gather alphabetically

**URL:** <https://forum.kirupa.com/t/getfontlist-does-not-gather-alphabetically/61794>\
**Category:** flash\
**Created:** [August 21, 2004, 10:29pm UTC](https://forum.kirupa.com/t/getfontlist-does-not-gather-alphabetically/61794 "2004-08-21T22:29:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 21, 2004, 10:29pm UTC](https://forum.kirupa.com/t/getfontlist-does-not-gather-alphabetically/61794/1 "2004-08-21T22:29:50Z")

</div>

i have a combobox with instance name _fonts_ and this code on frame 1:

```auto
fontAr = new Array
 fontAr = TextField.getFontList()
 for (i=0;i<fontAr.length;i++) {
     fonts.addItem(fontAr*)
     trace(fontAr*)
 }

```

it simply populates the combobox with all the fonts on your system…

but it is not very user friendly…

it would appear it orders them in order of date, which were last installed/made…

but if i am to actually **USE** this it would actually have some use if it were alphabetical…

so my question is this:

\*\* how can i re-arrange an array in alphabetical order? \*\*

nice, simple one-liner for u guys… but im afraid im not v good with arrays so ther may wel b a one line answer!!

please help pronto!

cheers,

Prophet.
