`Right click context menu inside of a file -> Editing -> Sort Selected Text` when there's no text selected will sort the entire file. It works fine when there's text selected, but when there's nothing selected I'd expect this operation to do nothing.
That behaved like this forever, I think if we change that, others will complain this is some regression.
Could change the text on that option when there's no text selected too. Something like `Sort Selected Text` with text selected, `Sort All Text` with nothing selected. Leaving it as `Sort Selected Text` and then sorting the entire file just misrepresents what's going to happen.
There is no api to do that for scripts and I think to add that is overkill. Perhaps one could rephrase the action text.
The action was rephrased. https://invent.kde.org/frameworks/ktexteditor/-/commit/af729fad54f15d61ee281fea4c74575a40cebd29