@@ -3935,8 +3935,9 @@ export default class Explorer {
39353935
39363936 if ( this . moduleInfo . imports . length > 0 ) {
39373937 const importTable = this . createInfoTable ( ) ;
3938- for ( let importIndex = 0 ; importIndex < this . moduleInfo . imports . length ; importIndex ++ ) {
3939- const importEntry = this . moduleInfo . imports [ importIndex ] ;
3938+ const sortedImports = this . moduleInfo . imports . map ( ( entry , index ) => ( { entry, index } ) ) ;
3939+ sortedImports . sort ( ( a , b ) => a . entry . fieldName . localeCompare ( b . entry . fieldName ) ) ;
3940+ for ( const { entry : importEntry , index : importIndex } of sortedImports ) {
39403941 const kindName = EXPORT_KIND_NAMES [ importEntry . kind ] || 'unknown' ;
39413942 let signature = '' ;
39423943 if ( importEntry . kind === 0 && importEntry . typeIndex !== undefined && importEntry . typeIndex < flatTypes . length ) {
@@ -3951,7 +3952,8 @@ export default class Explorer {
39513952
39523953 const nameLink = document . createElement ( 'a' ) ;
39533954 nameLink . className = 'detail-info-link' ;
3954- nameLink . style . flex = '0 0 140px' ;
3955+ nameLink . style . flex = '0 0 auto' ;
3956+ nameLink . style . maxWidth = '50%' ;
39553957 nameLink . textContent = importEntry . fieldName ;
39563958 nameLink . title = `${ importEntry . moduleName } .${ importEntry . fieldName } ` ;
39573959 nameLink . href = '#' ;
@@ -3994,8 +3996,9 @@ export default class Explorer {
39943996
39953997 if ( this . moduleInfo . exports . length > 0 ) {
39963998 const exportTable = this . createInfoTable ( ) ;
3997- for ( let exportIndex = 0 ; exportIndex < this . moduleInfo . exports . length ; exportIndex ++ ) {
3998- const exportEntry = this . moduleInfo . exports [ exportIndex ] ;
3999+ const sortedExports = this . moduleInfo . exports . map ( ( entry , index ) => ( { entry, index } ) ) ;
4000+ sortedExports . sort ( ( a , b ) => a . entry . name . localeCompare ( b . entry . name ) ) ;
4001+ for ( const { entry : exportEntry , index : exportIndex } of sortedExports ) {
39994002 const kindName = EXPORT_KIND_NAMES [ exportEntry . kind ] || 'unknown' ;
40004003 let signature = '' ;
40014004 const targetSection = this . getExportTargetSection ( exportEntry . kind ) ;
@@ -4023,7 +4026,8 @@ export default class Explorer {
40234026
40244027 const nameLink = document . createElement ( 'a' ) ;
40254028 nameLink . className = 'detail-info-link' ;
4026- nameLink . style . flex = '0 0 140px' ;
4029+ nameLink . style . flex = '0 0 auto' ;
4030+ nameLink . style . maxWidth = '50%' ;
40274031 nameLink . textContent = exportEntry . name ;
40284032 nameLink . title = exportEntry . name ;
40294033 nameLink . href = '#' ;
@@ -4143,8 +4147,8 @@ export default class Explorer {
41434147 : 1 ;
41444148
41454149 // Tier thresholds
4146- const highThreshold = maxScore * 0.6 ;
4147- const mediumThreshold = maxScore * 0.2 ;
4150+ const highThreshold = 150 ;
4151+ const mediumThreshold = 75 ;
41484152 const highCount = entries . filter ( entry => ( entry . branchCount * 3 + entry . maxNestingDepth * 5 + entry . instructionCount ) >= highThreshold ) . length ;
41494153 const medCount = entries . filter ( entry => {
41504154 const score = entry . branchCount * 3 + entry . maxNestingDepth * 5 + entry . instructionCount ;
0 commit comments