Use uasort() instead of usort() to order the stacks list.

changing usort to uasort to keep $stacks array keys intact.