Reference To: Sorting Algorithms in JavaScript
**Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
###COMPARISON:
Bubble Sort | Insertion Sort | Merge Sort | |
---|---|---|---|
Pros | Easy to Implement | Stable sort Good if short on space |
Stable sort Fastest |
Cons | Not Stable sort Slow as eff |
Not good for large data | Need lots of resources to use |
O(n) | O(n2) | O(n2) | O(n log n) |