Compare (Big Endian) Buffers numerically
npm install buffer-compare-numeric
Will compare (Big Endian) Buffer
s numerically, ignoring leading zeros.
var cmp = require('buffer-compare-numeric')
var a = Buffer([16])
var b = Buffer([00, 17])
[a, b].sort(Buffer.compare) // [b, a]
[a, b].sort(cmp) // [a, b]