Sorting cards problem, and a link
Rick Harrison
harrison at all-auctions.com
Sun Jan 2 00:30:16 EST 2022
Hi Jacque,
I’ve been looking at the exchange of messages here which had made me
want to ask, why are you sorting cards at all?
Wouldn’t it be easier just to use array pointers or an index for the cards.
You can sort the pointers however you like and the cards never have to
move at all according to your sort. You can do all of your sorting
experiments that way, and just go to the correct card that your
pointer index tells you to go to. It might be quicker too.
Happy New Year, and I hope that helps!
Rick
> On Jan 1, 2022, at 6:45 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi Alex, thanks so much for volunteering. There's a Dropbox transfer here:
>
> <https://www.dropbox.com/t/48p3udCRAwcRXnWb>
>
> The stack is huge, 8K+ cards. I told him he needs a database but he doesn't want to go there yet. In general it seems to work okay, at least for now. The stack was created 30 years ago in HC, he imported it to SuperCard, and now needs to move to LC. The original scripts were very minimal, I added a few more and cleaned up the visual appearance. I wrote an export script that he ran in SuperCard, and then imported the file to the new LC stack, creating cards along the way.
>
> The HC and SC stacks sorted correctly. Only LC fails.
>
> The first 13 cards always sort to the front of the stack which is where he wants them. They shouldn't, but they do, so okay. Go to one of the recipe cards and choose to sort by category.
>
> - The first 13 cards have no category so they don't move. Good.
> - The next cards, up to about 50, remain sorted by title
> - The following cards do sort by category, with each category alphabetical (good)
>
> Sort by title seems to work okay. If you can't duplicate the above, sort by title first and then by category.
>
> My question is, why don't "The Cheese Board" and "The Fruit Bowl" sort to the Ts when sorting by title? We don't want them to, but how come they don't? If you notice that Breakfast is out of order, it's because there's a space in front of the category name. He did that on purpose to keep it at the front.
>
> I checked for spaces and other invisible characters in the title and category fields and didn't find any.
>
> It's just weird. Thanks very much for taking a look, I'm at a loss.
>
> Jacque
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list