
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Status: Work in Progress
Dogsort is an in-place sorting algorithm (additional required memory is O(1)) with an average complexity of O(N*logN) (the worst complexity is currently under investigation but is guaranteed to be not greater than O(N^2)). It combines Quicksort and Average Sort (https://www.cscjournals.org/manuscript/Journals/IJEA/Volume2/Issue2/IJEA-16.pdf).
⚠️ This project has Work in Progress status. It passes all tests the author has written but it is not guaranteed to pass all edge cases. Please use with caution.
Dogsort is more than twice faster than V8 implementation of Array.sort in average for arrays that have size more than 1024 elements (see Roadmap). It also beats Timsort on random arrays but still dramatically loses on sorted arrays just yet, which is expected (see Roadmap). Here are some crude results on arrays of 10^6 size:
| Array Type | Array.sort (V8) | Timsort |
|---|---|---|
| Random: A lot of repeating elements | 25% | 29% |
| Random: Few or no repeating elements | 28% | 96% |
| Ordered: Perfect natural sequence | 22% | 1339% |
| Ordered: Numbers are close to each other | 16% | 5707% |
| Ordered: Numbers are 10^index | 9% | 5% |
| Reverse ordered | 23% | 1381% |
npm install dogsort --save
NodeJS
const dogsort = require('dogsort');
Browser
<script src='node_modules/dogsort/build/dogsort.js' type='text/javascript'></script>
...or use ES6 import or EMD
const array = [2, 8.88, -7, 90, 0, 120000, -3.455555]
dogsort(array)
console.log(array)
FAQs
A hybrid sorting algorithm based on Quicksort and Average Sort
The npm package dogsort receives a total of 4 weekly downloads. As such, dogsort popularity was classified as not popular.
We found that dogsort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.