Skip to content

Commit

Permalink
Improved fixes for import
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Nov 26, 2024
1 parent 24ce9b2 commit 83899fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ list[str] rascalSimilarNames(Use u, TModel tm){
}
//println("similarNames: <u>, <idRoles>, <vocabulary>");
similar = similarWords(w, vocabulary, tm.config.cutoffForNameSimilarity)[0..10];
return [ *(longNames[s]) | s <- similar ];
return [ *sort(longNames[s], bool (str a, str b) { return size(a) < size(b); }) | s <- similar ];
}

RascalCompilerConfig rascalCompilerConfig(PathConfig pcfg,
Expand Down

0 comments on commit 83899fd

Please sign in to comment.