python: Fix instability of Pyright/BasedPyright code completions (#37850)

Pyright sets different `sortText` based on whether a given completion
item was recently resolved. This probably lines up with VSCode's way of
resolving items, but it's a no-no for us, as it makes completions
unstable.

Closes #9983

Release Notes:

- python: Fixed code completions having arbitrary order when using
Pyright/basedpyright
2e7607c0e7Piotr Osiewicz committed on 9/9/2025, 3:34:57 PM· committed by GitHubparent0ac1752
1 file changedLine totals unavailable