public/ckeditor/4.4dev/plugins/dialog/plugin.js
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;
		}
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;
		}
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 ; }
Sort focus list according to tab order definitions.
Sort focus list according to tab order definitions .