diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/check/RascalConfig.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/check/RascalConfig.rsc index 35a51ba9..b5cff385 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/RascalConfig.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/RascalConfig.rsc @@ -485,7 +485,7 @@ list[str] rascalSimilarNames(Use u, TModel tm){ } //println("similarNames: , , "); 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,