Vika.St,
<textarea name="text" rows="25" cols="189" id="textarea" disabled></textarea>
<script>
var mas=new Array("Б","Г","А");
mas.sort();
var a=new Array(1,2,3,4,5,6,7,8,9,10);
for (i=0; i<mas.length; i++){
document.getElementById('textarea').value += a[i]+'.'+mas[i]+'\n';
}
</script>