# Array.sort( sortFunction ) clarification please

**URL:** <https://forum.kirupa.com/t/array-sort-sortfunction-clarification-please/272422>\
**Category:** flash\
**Created:** [October 5, 2008, 5:48am UTC](https://forum.kirupa.com/t/array-sort-sortfunction-clarification-please/272422 "2008-10-05T05:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwopitz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jwopitz/32/1556_2.png) [@jwopitz](https://forum.kirupa.com/u/jwopitz)\
**Post date:** [October 5, 2008, 5:48am UTC](https://forum.kirupa.com/t/array-sort-sortfunction-clarification-please/272422/1 "2008-10-05T05:48:37Z")

</div>

The sort function you can pass to Array.sort is a bubble sort right? That is the basic algorithm it uses? I tried looking on the docs and also at some ECMAScript-262 specifications but couldn’t find any definite answer as to the type of sorting algorithm it uses. I am assuming yes, but wanted to be sure.

thanks, J :stare:
