(function ($) {
	$.fn.focusme = function (options) {
		
		var arr = new Array();
		
		$(this).each(function (i, val) {
			
			var $$ = $(this);
			
			var priority = $$.attr('focusme');
			
			arr[i] = new Array($$, priority);
			
		});
			
		arr.sort();
		
		if(arr.length > 0) {
			arr[0][0].focus();
		}
		
	};
})(jQuery);