
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
component-sort
Advanced tools
Sort DOM elements
$ component install component/sort
Sort element ascending with the given callback function.
Alias of sort(el, fn)
Sort descending, inverting the fn() return value.
<ul>
<li>Tobi</li>
<li>Jane</li>
<li>Abby</li>
<li>Loki</li>
<li>Simon</li>
<li>Manny</li>
<li>Luna</li>
</ul>
<button onclick='asc()'>Sort ascending</button>
<button onclick='desc()'>Sort descending</button>
<script src="build/build.js"></script>
<script>
var sort = require('sort');
var ul = document.querySelector('ul');
function alpha(a, b){
a = a.textContent;
b = b.textContent;
if (a < b) return -1;
if (a > b) return 1;
return 0;
}
function asc() {
sort(ul, alpha);
}
function desc() {
sort.desc(ul, alpha);
}
</script>
MIT
FAQs
Sort DOM elements
We found that component-sort 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.