# Highscore / sort array

**URL:** <https://forum.kirupa.com/t/highscore-sort-array/312288>\
**Category:** flash\
**Created:** [July 29, 2010, 7:28pm UTC](https://forum.kirupa.com/t/highscore-sort-array/312288 "2010-07-29T19:28:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kekekiko](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kekekiko](https://forum.kirupa.com/u/kekekiko)\
**Post date:** [July 29, 2010, 7:28pm UTC](https://forum.kirupa.com/t/highscore-sort-array/312288/1 "2010-07-29T19:28:21Z")

</div>

I am trying to create a high score table offline that doesn’t need php just relies on dynamic textboxes.  
I am basing it on a kind of random football results generator. I have been able to get the random scores and add points to a team depending on the score but now I would like to be able to display them in a ‘league’ table based on their points score.

I hope that somebody out there can help, all of the tutorials I have found rely on php but this will be for an offline file. I have read that maybe sorting an array might help but I am not sure where to start and how to get it to display on screen.

Thanks!
