@angelamcosta/sort is a JavaScript library that provides several sorting algorithms.
npm install @angelamcosta/sort
const { bubbleSort } = require('@angelamcosta/sort');
const arr = [3, 6, 2, 1, 9];
const sortedArr = bubbleSort(arr);
console.log(sortedArr); // Output: [1, 2, 3, 6, 9]
The following sorting algorithms are available in this library:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort (soon)
- Quick Sort (soon)
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or issues, please contact the author.
If you find any bugs or have any suggestions, please file an issue here.