Get your own Node server Result Size: 625 x 565
let buf1 = Buffer.from('b');
let buf2 = Buffer.from('c');
let buf3 = Buffer.from('a');
let arr = [buf1, buf2, buf3];

//The array before sorting:
console.log(arr);

//Sort the array:
console.log(arr.sort(Buffer.compare));

              
[
  <Buffer 62>,
  <Buffer 63>,
  <Buffer 61>
]
[
  <Buffer 61>,
  <Buffer 62>,
  <Buffer 63>
]