code: function setupFocus() {
  			var focusList = me._.focusList;
  			focusList.sort( function( a, b ) {
  				// Mimics browser tab order logics;
  				if ( a.tabIndex != b.tabIndex )
  					return b.tabIndex - a.tabIndex;
  				//  Sort is not stable in some browsers,
  				// fall-back the comparator to 'focusIndex';
  				else
  					return a.focusIndex - b.focusIndex;
  			} );
  
  			var size = focusList.length;
  			for ( var i = 0; i < size; i++ )
  				focusList[ i ].focusIndex = i;
  		}
docs: Sort focus list according to tab order definitions.