You can check the heuristic class but in essence 

tmp > local variables> superclass variables

self message -> method in the class then in superclass

super message -> the right one

ClassName -> shared var > sharedVar of superclass > global environment

The problem of size is that often it proposes you something that is just out of scope just because it is smaller
and globally sorting breaks all the rest.
So if we keep it we should just through away all the rest because why bothering if this is just to break everythinng after

We are working on better heuristics for class names:
H1 we look in repository level package (all the packages within the project)
So this is local package > package in the same project > global
H2 we look in the dependent packages and the results are promising. 
So this is local to package > dependent packages > global 

Now I���m thinking that we could also have a way to declare preference per project. 
For example with Copiy Domenico could simple look first in his package and extensions.

The current heuristics also takes into account playground variables. 

We are also working on taking into account the past method defined. 

So as you see this is not just sorting. 

On 5 Apr 2025, at 22:44, Daniel Slomovits <daniels220@gmail.com> wrote:

Is there documentation of the intended behavior/reasoning behind the semantic sort somewhere? I feel like I might often prefer the SizeSorter behavior (if I'm understanding it correctly), but if that's going to be removed, maybe I would take a look at the semantic sorter and see if I can add some refinement options there.

On Fri, Apr 4, 2025 at 2:20���AM sducasseatwork--- via Pharo-dev <pharo-dev@lists.pharo.org> wrote:
But pay attention that we will remove the sorter because it often contradicts the semantics sorting implemented 
by default. I often put the sorter on NoSorter.

S

On 3 Apr 2025, at 21:42, Omar Abedelkader <omar.abedelkader@inria.fr> wrote:

Hello,

I hope this message finds you well.

This is to inform you about the available sorter options in our code completion engine and how to change them as needed. Currently, there are four different sorter configurations you can choose from:
  1. AlphabeticSorter ��� Sorts suggestions in alphabetical order.
  2. ReverseAlphabeticSorter ��� Sorts suggestions in reverse alphabetical order.
  3. NoSorter ��� Displays suggestions in the original order as provided by the completion engine.
  4. SizeSorter ��� Modifies the suggestion list to prioritize and return the closest match based on what you are currently typing.
If you would like to change the sorter, please follow these steps:
Open Settings ��� Code Browsing ��� Code Completion ��� Sorter, then select SizeSorter (or any other preferred sorter).

Default Sorter : NoSorter

Best regards,
--
Omar ABEDELKADER
Doctorant, ��quipe EVREF
Institut National de Recherche en Sciences et Technologies du Num��rique

Parc Scientifique de la Haute Borne
Park Plaza - B��timent A - 40 avenue Halley
59650 Villeneuve d'Ascq - France

<rf-inria.png>
Si vous lisez ce courriel en dehors de vos heures de travail, merci de ne le traiter qu���en cas d���urgence av��r��e.
Si ce courriel ne vous est pas destin��, merci de ne pas en prendre connaissance, le d��truire et en informer l���exp��diteur.
Merci de n���imprimer ce courriel qu���en cas de n��cessit��.



St��phane Ducasse
http://stephane.ducasse.free.fr
06 30 93 66 73

"If you knew today was your last day on earth, what would you do differently? ....ESPECIALLY if, by doing something different, today might not be your last day on earth.��� Calvin & Hobbes