Skip to content

Instantly share code, notes, and snippets.

@jjspace
jjspace / sortingAlgorithm.js
Last active November 28, 2018 15:54
sorting initially by severity, then count
/**
* TODO:
* Implement updated sorting functionality. Sort by:
* - High risks (high to low)
* - No High Risks. Medium risks (high to low)
* - No High Risks. No Medium Risks. Low Risks (high to low)
**/
// Expected sorting result:
// summaryBuckets.sort = [