Armen,
<script>
var arr = [0, 0, 4, 8, 8, 10, 45, 0, 23, 3, 8];
var result = arr.filter(function(item, index, array) {
return array.indexOf(item) !== array.lastIndexOf(item)
}).sort(function(a, b) {
return b - a
}).reduce(function(arr, item) {
arr[0] && arr[0][0] == item ? arr[0].push(item) : arr.unshift([item])
return arr;
}, []);
document.write(JSON.stringify(result))
</script>