var L = {
orial: [],
result: [],
rand: function(){
for (var i = 0; i < 10; i++) {
L.result.push(Math.floor(1 + Math.random() * 50));
}
L.orial = L.result.slice (0);
},
sorter: function(){
L.result.sort(function(first, second){
if (first > second) {
return -1;
} else if (first < second) {
return 1;
} else {
return 0;
}
});
}
};
L.rand();
console.log(L.orial);
L.sorter();
console.info(L.result);