View Single Post
Old 11-22-2019, 04:59 PM   #118279
Solitaire1
Samurai Lizard
Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.
 
Solitaire1's Avatar
 
Posts: 14,980
Karma: 70029956
Join Date: Nov 2009
Device: NookColor, Nook Glowlight 4
Quote:
Originally Posted by pdurrant View Post
Bubble sort is only useful on data that is mostly sorted, with only a few items out of place.

Quicksort is the one to use for unsorted data.

An informative win.
I'm not familiar with quicksort, but after the initial sorting bubblesort should work just as well since you only have move one item around with each post.

However, wouldn't just adding more and more "z" starting posts (which would like be the result of sorting the thread alphabetically) defeat the purpose of resorting the thread alphabetically? I just wonder how many posts a thread can contain since I'm sure there is a limit (2 to the 20th power would allow for over 1,000,000 posts).
Solitaire1 is offline   Reply With Quote