mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
fixed alert grouping
This commit is contained in:
10
ipUtils.js
Normal file
10
ipUtils.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
module.exports = {
|
||||
sortByPrefixLength : function (a, b) {
|
||||
const netA = a.split("/")[1];
|
||||
const netB = b.split("/")[1];
|
||||
|
||||
return netA - netB;
|
||||
}
|
||||
|
||||
};
|
Reference in New Issue
Block a user