JavaScript Sorting Trray Ciąg autorstwa Len
array.sort(function(a, b){return b.length - a.length});
McBurd
array.sort(function(a, b){return b.length - a.length});