Join the #1 community for gun owners of the Southwest
We believe the 2nd Amendment is best defended through grass-roots organization, education, and advocacy centered around individual gun owners. It is our mission to encourage, organize, and support these efforts throughout Arizona, Nevada, Utah, Colorado, and New Mexico.
Discuss firearms and all aspects of firearm ownership
Join others in organizing against anti-gun legislation
Find nearby gun shops, ranges, training, and other resources
Discover free outdoor shooting areas
Stay up to date on firearm-related events
Share photos and video with other members
...and much more!
case sorter
Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the input list element by element, comparing the current element with the one after it, swapping their values if needed. These passes through the list are repeated until no swaps had to be performed during a pass, meaning that the list has become fully sorted. The algorithm, which is a comparison sort, is named for the way the larger elements "bubble" up to the top of the list.
This simple algorithm performs poorly in real world use and is used primarily as an educational tool. More efficient algorithms such as quicksort, timsort, or merge sort are used by the sorting libraries built into popular programming languages such as Python and Java.