JavaScript sort method numbers

const arr = [128, 1, 333, 1000, 10, 100];

arr.sort();
//Result: 
//[1, 10, 100, 1000, 128, 333]