Re: Sorting cards problem solved

2022-01-06 Thread David V Glasgow via use-livecode
Hope I didn’t come over as sarcastic!  Not at all.  

It all took me back to HC days and my astonishment at how powerful and fast 
searching and marking cards was…  I was eagerly following the thread to learn 
more.

> On 4 Jan 2022, at 6:55 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/3/22 2:53 PM, David V Glasgow via use-livecode wrote:
>> Please let me not be the only one who can’t stand the suspense...
> 
> I know this topic has taken over the list, and it's probably run its course 
> now so you can breathe easy. The last puzzle remains unsolved, though I got a 
> couple of tips from someone about trailing carriage returns in the title 
> field.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-04 Thread J. Landman Gay via use-livecode

On 1/3/22 2:53 PM, David V Glasgow via use-livecode wrote:

Please let me not be the only one who can’t stand the suspense...


I know this topic has taken over the list, and it's probably run its course now so you can 
breathe easy. The last puzzle remains unsolved, though I got a couple of tips from someone 
about trailing carriage returns in the title field.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread David V Glasgow via use-livecode
Please let me not be the only one who can’t stand the suspense...

> On 3 Jan 2022, at 7:18 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/3/22 12:13 PM, Mark Wieder via use-livecode wrote:
>> On 1/3/22 9:30 AM, J. Landman Gay via use-livecode wrote:
>>> Right, Zweibelwähe should be last, and other Parsley recipes are in the Ps 
>>> inside the Vegetable category. Just not this one.
>> If I sort by Category (after adding the two fields to the first two cards as 
>> Alex suggested) I see the following sort order:
>> card id 9181
>> card id 9182
>> card id 9183
>> card id 7908
>> (all with a category of "Vegetable".
> 
> 7908 isn't right either. I get:
> 
> card id 9181
> card id 9182
> card id 9183
> card id 9184
> 
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread J. Landman Gay via use-livecode

On 1/3/22 12:13 PM, Mark Wieder via use-livecode wrote:

On 1/3/22 9:30 AM, J. Landman Gay via use-livecode wrote:
Right, Zweibelwähe should be last, and other Parsley recipes are in the Ps inside the 
Vegetable category. Just not this one.


If I sort by Category (after adding the two fields to the first two cards as Alex suggested) I 
see the following sort order:


card id 9181
card id 9182
card id 9183
card id 7908

(all with a category of "Vegetable".



7908 isn't right either. I get:

card id 9181
card id 9182
card id 9183
card id 9184



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread J. Landman Gay via use-livecode

On 1/3/22 11:38 AM, Klaus major-k via use-livecode wrote:

Is this -> "Zweibelwähe" supposed to be a german dish with/from onions?
If yes, then it is called -> Zwiebelwähe (Zwiebel = onion in german)

"Zweibelwähe" is not a german word. :-)


Must have been the client's typo, it's that way in the stack. You know us Americans, we think 
everyone should only write in English. ;)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread Mark Wieder via use-livecode

On 1/3/22 9:30 AM, J. Landman Gay via use-livecode wrote:
Right, Zweibelwähe should be last, and other Parsley recipes are in the 
Ps inside the Vegetable category. Just not this one.


If I sort by Category (after adding the two fields to the first two 
cards as Alex suggested) I see the following sort order:


card id 9181
card id 9182
card id 9183
card id 7908

(all with a category of "Vegetable".

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread Klaus major-k via use-livecode
Hi Jaques,

> Am 03.01.2022 um 18:30 schrieb J. Landman Gay via use-livecode 
> :
> 
> Right, Zweibelwähe should be last, and other Parsley recipes are in the Ps 
> inside the Vegetable category. Just not this one.

Is this -> "Zweibelwähe" supposed to be a german dish with/from onions?
If yes, then it is called -> Zwiebelwähe (Zwiebel = onion in german)

"Zweibelwähe" is not a german word. :-)

> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On January 3, 2022 10:38:14 AM Mark Wieder via use-livecode 
>  wrote:
> 
>> On 1/2/22 9:41 PM, J. Landman Gay via use-livecode wrote:
>> 
>>> And...the client is pleased but noticed it all sorts very nicely except
>>> for the last card, which is in the correct category but out of
>>> alphabetical order. Anyone care to figure out why?
>>> 
>>>  - sort by title -- okay
>>>  - sort by category -- Last card is wrong. Others are okay.
>> 
>> What counts as the "last" card? Is that card id 9183 "Zweibelwähe"?
>> 
>> --
>> Mark Wieder
>> ahsoftw...@gmail.com

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread J. Landman Gay via use-livecode
Right, Zweibelwähe should be last, and other Parsley recipes are in the Ps 
inside the Vegetable category. Just not this one.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 3, 2022 10:38:14 AM Mark Wieder via use-livecode 
 wrote:



On 1/2/22 9:41 PM, J. Landman Gay via use-livecode wrote:


And...the client is pleased but noticed it all sorts very nicely except
for the last card, which is in the correct category but out of
alphabetical order. Anyone care to figure out why?

  - sort by title -- okay
  - sort by category -- Last card is wrong. Others are okay.


What counts as the "last" card? Is that card id 9183 "Zweibelwähe"?

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-03 Thread Mark Wieder via use-livecode

On 1/2/22 9:41 PM, J. Landman Gay via use-livecode wrote:

And...the client is pleased but noticed it all sorts very nicely except 
for the last card, which is in the correct category but out of 
alphabetical order. Anyone care to figure out why?


    - sort by title -- okay
    - sort by category -- Last card is wrong. Others are okay.


What counts as the "last" card? Is that card id 9183 "Zweibelwähe"?

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-02 Thread J. Landman Gay via use-livecode
There seems to be some interest in the recipe content, or maybe the puzzle, given the number of 
downloads. At any rate, if you downloaded already, please replace the Sort button with the 
revised script:


on menupick pWhich
  put the last word of pWhich into tFld
  sort cards by the short id of this cd -- import order; keep first 13 cards at 
front
  mark cds where there is a fld "category" and fld "category" <> empty -- real 
recipes only
  sort marked cards by field tFld
  if the num of cd "index" <> 1 then
set the num of cd "index" to 1
set the num of cd "eggsaver" to 2
  end if
end menupick

Or if you want a fixed version, it's here for a week:


And...the client is pleased but noticed it all sorts very nicely except for the last card, 
which is in the correct category but out of alphabetical order. Anyone care to figure out why?


   - sort by title -- okay
   - sort by category -- Last card is wrong. Others are okay.

BTW, I tried Alex's suggestion of adding Title fields to the first two cards but LC hung until 
I hit Cmd-period. But Mark Wieder says it worked for him. I'm staring blankly.



On 1/2/22 2:46 PM, J. Landman Gay via use-livecode wrote:
Well, it was an interesting puzzle. The "mark" property has come up before but I didn't think 
it through enough. This seems to work:


   put the last word of pWhich into tFld -- popup menu with fld names
   sort cards by the short id of this cd -- import order; keep first 13 cards 
at front
   mark cds where there is a fld "category" and fld "category" <> empty -- tag 
real recipes only
   sort marked cards by field tFld -- "category" or "title"

Those who have never used The Ancient Xtalks may not know about the mark command. I used it all 
the time back in the dark ages but didn't think the solution would be so obvious. Mark Wieder 
jogged my memory.


So, duh. I hope I'm not kidding myself.

There's one day left before the link I posted expires. I've tagged 20 recipes I want to try. 
You might like to do that too. The client doesn't mind, he wants to share the stack with the 
world and is debating whether to fund a standalone so people won't have to install LC.





--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sorting cards problem solved

2022-01-02 Thread J. Landman Gay via use-livecode
Well, it was an interesting puzzle. The "mark" property has come up before but I didn't think 
it through enough. This seems to work:


  put the last word of pWhich into tFld -- popup menu with fld names
  sort cards by the short id of this cd -- import order; keep first 13 cards at 
front
  mark cds where there is a fld "category" and fld "category" <> empty -- tag 
real recipes only
  sort marked cards by field tFld -- "category" or "title"

Those who have never used The Ancient Xtalks may not know about the mark command. I used it all 
the time back in the dark ages but didn't think the solution would be so obvious. Mark Wieder 
jogged my memory.


So, duh. I hope I'm not kidding myself.

There's one day left before the link I posted expires. I've tagged 20 recipes I want to try. 
You might like to do that too. The client doesn't mind, he wants to share the stack with the 
world and is debating whether to fund a standalone so people won't have to install LC.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode