Do not sort errors in the panel considering its end
In the panel we do not show the length of an error, only its line
and starting position. We basically should first sort on "things"
visible to the user, hence sorting by "end" comes last.
@@ -361,7 +361,7 @@ def get_window_errors(window, errors_by_file):
return {
filename: sorted(
errors,
- key=lambda e: (e["line"], e["start"], e["end"], e["linter"])
+ key=lambda e: (e["line"], e["start"], e["linter"], e["end"])
)
for filename, errors in (
(filename, errors_by_file.get(filename))
