TreeView custom sort?

Matt Maier blueback09 at
Sat Dec 10 12:59:34 EST 2016

I used rTree when I was trying to find a pre-built tree tool. It's pretty
I think I actually got some code straight from the dev that wasn't posted
publicly. I haven't used it in a long time.

As a side note, I just want to say that it's refreshing to see you have a
hard time explaining something ;) I rewrote this reply a few times as I
gradually figured out what you're asking for.

So is the problem that TreeView doesn't let you control what order the
branches are displayed in? It just dumps them out in a random order, or in
a single order that happens to be the wrong one for your use case?

Maybe there's a way to get it to sort by an invisible character? One that
affects the sort but isn't actually displayed on screen?

On Sat, Dec 10, 2016 at 9:30 AM, Richard Gaskin <ambassador at>

> I need a sort of object browser, and have been playing around with the
> TreeView widget as a possible quick solution.
> Handy for many things, but being array-based it seems my options for
> sorting are limited.
> Like the IDE's Object Browser, I need a sort order which reflects physical
> layering of objects.
> I could number these as I add them to the array, but the numbers would be
> meaningless to the user, as they would be in the Object Browser.
> I'd like to show the object name instead, but I can't find a way to do
> that while maintaining a fixed order.
> Any ideas, or am I back to making a custom control for this?
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at      
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the Use-livecode mailing list