[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-04-01 Thread michaelharrison619
S. S., Firstly, thank you for taking the time to put that table together. I have tried it and it does work ... if the table is not sortable. Perhaps I have explained myself poorly. What I am looking to do is to keep the table sortable, but change the default behavior, which is that, after

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-04-01 Thread TonyM
Folks, The most important concept to achieve sorts and subsorts is the use of nested list widgets. The filter in each list widget can select and sort. If the outer widget does the initial sort, the nested list can do the subsort. this nesting can go multiple levels deep but quickly exhausts

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-04-01 Thread Mohammad
:-) HaHaHa.. USEFUL confusion! :-) On Monday, April 1, 2019 at 11:07:05 AM UTC+4:30, S. S. wrote: > > Ha ha > > I thought you asked - what does *each* operator do here. > Now I believe you actually meant - what does the *"each"* operator do > here! > > Still, it was fun to explain

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-04-01 Thread S. S.
Ha ha I thought you asked - what does *each* operator do here. Now I believe you actually meant - what does the *"each"* operator do here! Still, it was fun to explain what *each* operator was doing. Have a great semantic day! On Monday, April 1, 2019 at 1:27:33 PM UTC+7, Mohammad wrote: >

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-04-01 Thread Mohammad
Hi S.S., Many thanks for detailed explanation! I got why you have used *each * operator! This is actually a doubly sorted list! Wonderful! Added to TW-Scripts --Mohammad On Monday, April 1, 2019 at 10:31:39 AM UTC+4:30, S. S. wrote: > > > Mohammad, > > Well, Michaelha hasn't confirmed that it

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-04-01 Thread S. S.
Mohammad, Well, Michaelha hasn't confirmed that it works yet! What I did was to test a similar scenario in my own TiddlyWiki. I have a bunch of books tagged *book*, that have an *author* field, and a (publication) *year* field. Some authors have multiple books. So I tried to list my books so

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread Mohammad
S.S, What does each operator do here? On Monday, April 1, 2019 at 6:17:31 AM UTC+4:30, S. S. wrote: > > Give this a try: > > > <$list filter="[tag[Ebook]has[vendor]each[vendor]get[vendor]sort[]]"> > <$list filter="[tag[Ebook]has[vendor]field:vendor > sort[author]]"> > > > //<$link

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread Mohammad
Added to TW-Scripts On Monday, April 1, 2019 at 6:17:31 AM UTC+4:30, S. S. wrote: > > Give this a try: > > > <$list filter="[tag[Ebook]has[vendor]each[vendor]get[vendor]sort[]]"> > <$list filter="[tag[Ebook]has[vendor]field:vendor > sort[author]]"> > > > //<$link to={{!!title}}><$view

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread S. S.
Give this a try: <$list filter="[tag[Ebook]has[vendor]each[vendor]get[vendor]sort[]]"> <$list filter="[tag[book]has[vendor]field:vendor sort[author]]"> //<$link to={{!!title}}><$view field="title"/>// <$view field='author'/> <$view field='vendor'/> -- You

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread michaelharrison619
No, unfortunately that has removed all content except the authors. Guess I will have to keep playing around with it. Thank you for suggesting the get operator. Can you think of anything else that might work? Thank you. -- You received this message because you are subscribed to the Google

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread S. S.
I had imagined that changing the first line of the macro to the below might have done it. But I may be very mistaken. [tag[EBook]has[vendor]get[author]$(SortType)$sort{!!sort_by}] I have not used the *get* operator before, so this may be very incorrect help. Sorry. On Monday, April 1, 2019

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread michaelharrison619
S. S., I apologize for being a clod, but I am afraid I don't see how I would be able to implement the get operator in the above table. Would you be able to explain how I would use the operator properly? From what I understand, I would not have thought it would work with the sortable table.

[tw5] Re: [TW5] Secondary sort in Sortable Tables

2019-03-31 Thread S. S.
Huw asked a similar question just yesterday, and who else but Jed had the answer. Filter list by tag but sort by and show value of field Hope that helps. Cheers -- You received this message because you are subscribed to