Reorder Listbox to alphabetical order (APFS)

  1. 5 days ago

    Paulo V

    Jun 28 Porto Alegre, Brasil
    Edited 5 days ago

    Hello,

    I would like to see if someone can help me, I use a Listbox with super (volumebrowser class), until Sierra the list is populated in alphabetical order but from High Sierra, Mojave it is populated in a random way that I can't understand, someone already had and solve this problem ?

    I saw in other posts that it seems to be a matter of APFS, question, how can I reorganize after populating the listbox giving a manual refresh for example?

    I still use XOJO 2017 (2.1)

    Tanks.

    I already got an alternative solution, after loading the list I organize it with the Sort function with a timer.

    Thanks to anyone who tried to help me, I am very grateful !

  2. Emile S

    Jun 29 Europe (France, Strasbourg)

    The catalog order is not alphabetically returned by defalt.

    Sort it. 'There is an instruction to do that). (There is also an event to put your own code to sirt the data).

    Also, you can set a SQLite db in memory and sort it at read time.

  3. Kevin G

    Jun 29 Xojo Pro Gatesheed, England

    @Paulo V Hello,

    I would like to see if someone can help me, I use a Listbox with super (volumebrowser class), until Sierra the list is populated in alphabetical order but from High Sierra, Mojave it is populated in a random way that I can't understand, someone already had and solve this problem ?

    I saw in other posts that it seems to be a matter of APFS, question, how can I reorganize after populating the listbox giving a manual refresh for example?

    I still use XOJO 2017 (2.1)

    Tanks.

    Build an array of volume FolderItems, build an array of the FolderItem names and then do something like: folderItemNameArray.SortWith(folderItemArray)

  4. 4 days ago

    Paulo V

    Jun 29 Porto Alegre, Brasil

    @Kevin G Build an array of volume FolderItems, build an array of the FolderItem names and then do something like: folderItemNameArray.SortWith(folderItemArray)

    Hello Kevin.

    I've never done this before because I use a Volumebrowser class that I got from years ago, could you give me a light on how I do this, where would there be any example that I can rely on because I'm completely lost?

  5. Paulo V

    Jun 29 Porto Alegre, Brasil

    @Emile S The catalog order is not alphabetically returned by defalt.

    Sort it. 'There is an instruction to do that). (There is also an event to put your own code to sirt the data).

    Also, you can set a SQLite db in memory and sort it at read time.

    Hello Emile,

    I don't use SQLite, I have a very old class (Volumebrowser) that reads a folder on the mac and returns it to me in a listbox, has any tips on how I can solve this, would have some example documentation because I have no idea how to do it, I've tried but I haven't found how do ?

    Thanks and any help is welcome !

  6. Emile S

    Jun 29 Europe (France, Strasbourg)

    Did you made a seach for this in this forum ?

    I am quite sure this already came here.

  7. Paulo V

    Jun 29 Porto Alegre, Brasil

    @Emile S Did you made a seach for this in this forum ?

    I am quite sure this already came here.

    Yes Emile, I searched but I couldn't find any example that can be based, would you happen to know how I change the order to alphabetical by clicking on the colapserow (triangle) on listbox for example?

    If I activate HasHeading I can reorganize the master folder but not the subfolders that have closed triangles.

  8. 3 days ago

    Paulo V

    Jun 30 Answer Porto Alegre, Brasil

    I already got an alternative solution, after loading the list I organize it with the Sort function with a timer.

    Thanks to anyone who tried to help me, I am very grateful !

or Sign Up to reply!