Hi. I've been looking at the table sorting script available at http://www.workingwith.me.uk/article..._table_sorting and have a few questions about the coding style.

I would like to know what is the difference between


Code:
init : function() {
		// do stuff	
		
	},
and

Code:
function init () {
		// do stuff	
		
		
	}

Is this somthing to do with labels. What are the advantages and disadvantages of the two approaches?

I look forward to learning from your answers.