<script type = "text/javascript">
var myArray=new Array(
new Array("af","ad","az","ab"),
new Array("bc","bd","bg","bb","bx"),
new Array("cf","ck","ca","cv","co"),
new Array("dd"));
for (var i = 0; i<myArray.length; i++) {
myArray[i] = myArray[i].sort();
}
alert (myArray);
</script>
And it comes with a caveat which could be read as a warning. - Commentator BBC Radio 4
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.