Jan Doggen
Jan Doggen

Reputation: 9096

File sort order lost in IDE

I'm constantly losing the sort order for the files in my Delphi projects:

enter image description here

How can I fix this? Is there a bug in my Delphi 10.4.2 IDE?

Upvotes: 1

Views: 123

Answers (1)

Jan Doggen
Jan Doggen

Reputation: 9096

(Self answering because I finally found it, and I want to spare others the frustration)

You need to follow a specific sequence because the IDE interface closes the Sort By popup menu after every action:

enter image description here

If you click on e.g. Name, the IDE sorts the files once. The submenu closes immediately (i.e. no visual feedback) and nothing is remembered.

The trick is to first click on Auto Sort, then reopen the submenu, then click on Name.

Now when you save the project, the settings are written to the .local file and applied in later sessions:

<ProjectSortOrder AutoSort="-1" SortType="1">

Upvotes: 6

Related Questions