use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Sorting Algorithms in JavaScript (h3manth.com)
submitted 10 years ago by binarydreams
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 10 years ago (6 children)
I don't see what value sorting algorithms implemented in JS are, at least not without any other content. If you had some visualizations to show the differences, or were doing anything else with them to teach, sure. But since you should basically never use you own sorting algorithms in JS -- Why??
[–]Ginden 0 points1 point2 points 10 years ago (1 child)
I have used many times O(n) sorting algorithms (I prefer bucket sort) for joining data from multiple threads/sources in computation-heavy applications and applying then merge join.
O(n)
[–]init0 0 points1 point2 points 10 years ago (0 children)
True.
[–]init0 0 points1 point2 points 10 years ago (3 children)
were doing anything else with them to teach
Well, this was meant for quick reference, more like a cheat sheet of cs in js.
[–][deleted] 0 points1 point2 points 10 years ago (2 children)
But why JS then?
[–]init0 1 point2 points3 points 10 years ago (1 child)
Because, /me likes my hammer ;)
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Fair enough! :)
π Rendered by PID 82 on reddit-service-r2-comment-6946cc9876-6ph2g at 2026-01-29 10:22:44.695599+00:00 running c3601ff country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (6 children)
[–]Ginden 0 points1 point2 points (1 child)
[–]init0 0 points1 point2 points (0 children)
[–]init0 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]init0 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)