See also Visualizing Algorithms: <a href="https://bost.ocks.org/mike/algorithms/" rel="nofollow">https://bost.ocks.org/mike/algorithms/</a>
> If the elements are already the program will perform fewer operations. On the contrary, if the items are in reverse order, it will require more swap operations to get it sorted.<p>I think you're missing a word in the first sentence.
This doesn't count as a Show HN, so we took that out. Please see <a href="https://news.ycombinator.com/showhn.html" rel="nofollow">https://news.ycombinator.com/showhn.html</a>.