### Godot version

c0d8d91

### System information

Windows 11

### Issue description

There's weird bug going on with the latest master branch. The auto completion in script editor is sorted in a wacky ways, putting sort of constants ahead of anything because it's ahead alphabetically
![image](https://github.com/godotengine/godot/assets/13846022/0f3e389e-f5d1-46b2-9f78-c215f3ad5abd)

Now compare it to my build about two weeks ago
![image](https://github.com/godotengine/godot/assets/13846022/37013cad-2e8f-4aa3-9270-0e8dfd9502ea)

Both are using the same content of 'editor_data' settings folder. And loading up the same project.

### Steps to reproduce

- Open a new blank project
- Make a new script
- Triggers any auto completion in Script Editor

### Minimal reproduction project

N/A
}
		set_caret_column(initial_cursor_column - removed_characters, false, c);
	}
	end_complex_operation();
	queue_redraw();
}
void CodeEdit::convert_indent(int p_from_line, int p_to_line) {
	if (!is_editable()) {
		return;
	}
	
	p_from_line = (p_from_line < 0) ? 0 : p_from_line;
	p_to_line = (p_to_line < 0) ? get_line_count() - 1 : p_to_line;
	ERR_FAIL_COND(p_from_line >= get_line_count());
	ERR_FAIL_COND(p_to_line >= get_line_count());
	ERR_FAIL_COND(p_to_line < p_from_line);
	
	Vector<int> caret_columns;
	Vector<Pair<int, int>> from_selections;
	Vector<Pair<int, int>> to_selections;
	caret_columns.resize(get_caret_count());
	from_selections.resize(get_caret_count());
	to_selections.resize(get_caret_count());
	for (int c = 0; c < get_caret_count(); c++) {
		caret_columns.write[c] = get_caret_column(c);
		
		if (!has_selection(c)) {
			from_selections.write[c].first = -1;
			continue;
		}