docs: function( element ) {
  				// Clone the array as it would become empty during the sort call.
  				var children = element.children.slice( 0 );
  
  				children.sort( function( node1, node2 ) {
  					var index1, index2;
  
  					// Compare in the predefined order.
  					if ( node1.type == CKEDITOR.NODE_ELEMENT && node2.type == node1.type ) {
  						index1 = CKEDITOR.tools.indexOf( tableOrder, node1.name );
  						index2 = CKEDITOR.tools.indexOf( tableOrder, node2.name );
  					}
  
  					// Make sure the sort is stable, if no order can be established above.
  					if ( !( index1 > -1 && index2 > -1 && index1 != index2 ) ) {
  						index1 = getNodeIndex( node1 );
  						index2 = getNodeIndex( node2 );
  					}
  
  					return index1 > index2 ? 1 : -1;
  				} );
  			}