array.sort()-Methode isn't working as it should : i want to display a Array of names in a table. ist like a timetable and i have a sort-button because if i want to add a new Student, the Student should be classified at the right place.
My Array contains this values

 - Benj
 - Zebra
 - Yves
 - Anna

but if i press the sort button the output is like this

 - Zebra
 - Yves
 - Anna
 - Benj

That dosent make sense ist not ascending and not descending

Here is the code

				function sort(){
					students.sort();
						for(var i = 0;i<students.length+1;i++){
								if(i!=0){
									alert(students[i-1].innerHTML);
									<!--table.rows[i].cells[0].innerHTML = students[i-1].innerHTML;-->
							}
						}
				}