javaphp,
<p> А должно получиться:</p>
<p>all111456, art221827, fol232926, ind30040, mus14114, mus141111, sml161617, str34222, vid34343</p>
<script>
var arr = [ "art221827", "mus141111", "mus14114", "vid34343", "fol232926", "str34222", "sml161617", "all111456", "ind30040"];
function fn(a,b)
{
var aa = a.replace(/\d+/g,""), bb = b.replace(/\d+/g,"");
a = a.replace(/\D+/g,"");
b = b.replace(/\D+/g,"");
return (aa > bb ) - (bb > aa) || a - b
}
arr.sort(fn);
document.write(JSON.stringify(arr))
</script>