Xojo2024R3: Problem saving sorted classes in IDE

I have been working for some time on conversion of inherited code for web app from Xojo2018 to Xojo2024. One of the problems that I see has to do with IDE I think. The app has folder called FileDefs that has different classes, all created at different point it time (I think) and as a result they are listed “as is” rather than sorted in alphabetical order. I have put some effort yesterday to re-order them and saved. Much to my amazement/surprice and frustration the classes are showing as before, not ordered.

This has been the same in Xojo2018 and it is the same in Xojo2024.

Is there a hidden option/trick available to gurus only that allows poor developer to have some comfort and see things ordered properly? Is it a bug or a feature?

Has anyone ever complained about this?

Note:
the “git status” shows the change after I quit/save Xojo but when I relaunch Xojo there is no visual change at all

Add a issue with example

It’s always been this way. Close a folder, module, whatever, and on re-opening it’s all sorted in alpha order.

I don’t believe so.

It doesn’t do that in the versions of Xojo i’m using.

1 Like

OK, so it looks like all Xojo developers are either too shy or to busy making money to complain about this (I know I am sarcastic but it is happy Friday today after all).

Btw, I am still smiling and enjoying life despite all these inconveniences.

Kevin, what is the version you are using?

I have been using Xojo2018, then Xojo 2023/2024 all flavors and the same problem occurred.

Humph. I can’t immediately see a pref to change that.

Various versions, but Xojo 2014r2, Xojo 2017r3 & Xojo 2019r1 are the ones I use on a regular basis.

The feature is definitely buggy as there are times when I have rearranged the class order, closed then re-opened the folder and found that it wasn’t how I arranged things.

Maybe you can group it with additional folders?

Here it is:
https://tracker.xojo.com/xojoinc/xojo/-/issues/77630

Creating additional folders is not the solution, the issue will not go away.
Please keep in mind that dealing with legacy code made by “free spirited” developers is one issue. The other issue is getting other people coming and taking over the code.

There used to be an option “use your own sort order” or something like that. I’ve never had the IDE to use alphabetical sort. But I can’t find anything - at first glance - in the prefs.

Are you saving in binary format or in xojo_project format?

I just reorder one folder, saved, load it again and the order was kept. I see the manifest updated and moved the contents according to how I moved them. I’m using xojo_project format.

if the list can be ordered by drag and drop it should be saved.
for abc order it should have a context menu.

Alberto, I work with git all the time so no binary format.
I did create sample in binary Xojo2024R3 attached to the issue.

Btw, I am referring to ordering classes/modules inside the folder (not creating folders and ordering different folders).

That is what I did in one of our projects and it worked.
I’m sorry I don’t have more time to test right now.

Edit: my guess is that I also have modules, webpage and folders. Maybe some mix of items (or the number of items) makes things work?

If you open the folder/module while holding the alt key the contents are sorted. Not sticky but usable.

3 Likes

Going all the way back to the original poster’s question…

When moving items within the same folder, check and see if those moves are undoable. If they’re not, they don’t mark the project manifest as being dirty enough to be saved again.

If that’s the case, try this:

  1. Move the items the way you want them
  2. Add an empty class to the project
  3. Delete the class
  4. Save
1 Like

Good morning Greg, I have tried your suggestions, it makes no difference. There is clearly a problem. One could argue that it is about old code converted to new Xojo2024R3 but regardless it is not working.

Perhaps this is something that will be fixed in the upcoming release or some other time, I just hope that I will still be around working with Xojo. Until then I will simply accept the fact and move on. Thanks everybody for showing interest and sharing.

Try with a different Machine / user (to check against a now buggy IDE. If it works, uninstall the current Xojo application and install it from a fresh copy.

Checking the hard disk can be a good idea too. Same as the previous §.