OK, I'll give you a hint. Indices start from zero (0) in javascript. So if you have an empty array like sumarr in your example and then push one element onto that array (LIFO fashion) how many elements are now in the array?
If there are m elements in an array and one wants to get at the m
th element with 0 < m <= n the index of that element will be m-1.
Cheers!
—MRB
var myarr = ['tpc001:10','tpc003:5','tpc000:4','tpc001:7','tpc003:4','tpc008:1'];
var sumarr =[];
myarr.sort();
sumarr.push(myarr[1]);
alert(sumarr[0]);