# Adding a "sort by" function to a gallery

**URL:** <https://forum.kirupa.com/t/adding-a-sort-by-function-to-a-gallery/303311>\
**Category:** flash\
**Created:** [January 18, 2010, 4:42pm UTC](https://forum.kirupa.com/t/adding-a-sort-by-function-to-a-gallery/303311 "2010-01-18T16:42:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heerefishyfish](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@Heerefishyfish](https://forum.kirupa.com/u/Heerefishyfish)\
**Post date:** [January 18, 2010, 4:42pm UTC](https://forum.kirupa.com/t/adding-a-sort-by-function-to-a-gallery/303311/1 "2010-01-18T16:42:21Z")

</div>

Hi all,

I have a portfolio page that showcases my work, and am interested in offering the ability to “filter” the thumbmails of each by various tags.

This can be seen in action here [www.thefwa.com](http://www.thefwa.com). The sorting buttons are at the top left.

I’ve read through some of the quicksort tutorial here on kirupa, but am not sure that it’s really what I’m looking for:

[http://www.kirupa.com/developer/actionscript/quickSort.htm](http://www.kirupa.com/developer/actionscript/quickSort.htm)

Any advice would be hugely appreciated.

Thanks
