[tw] Re: sort on TiddlerSlice

2012-03-30 Thread Tobias Beer
Two level sort? Just concatenate the two strings together...

sortBy 
'store.getTiddlerSlice(tiddler.title,"Dia")'+'store.getTiddlerSlice(tiddler.title,"Another")'

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/Bl3oFAnU2MwJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: sort on TiddlerSlice

2012-03-29 Thread skye riquelme
Sorry about that...It does work! it was my data that was not
organized as I thought it was.I was wrong and TW was right after
all

Now I just have to figure out how to use this in a two level sort !!!

Thanks
Skye

On 29 mar, 15:49, skye riquelme  wrote:
> .still cant get it to work
>
> ..I now have
> < 'store.getTiddlerSlice(tiddler.title,"Dia")' descending write
> '"|"+store.getTiddlerSlice(tiddler.title,"Tema")
> +"|"+store.getTiddlerSlice(tiddler.title,"Dia")
> +"|"+store.getTiddlerSlice(tiddler.title,"Sessao")+"|...
>
> ..what is strange that the write command correctly evaluates and
> outputs  store.getTiddlerSlice(tiddler.title,"Dia").. but the
> sortBy doesnt seem to recognize it ...its not sorting on that
> value
>
> I'm stumped!!
>
> Thanks
> Skye
>
> On 28 mar, 03:14, Måns  wrote:
>
>
>
>
>
>
>
>
>
> > Hi Skye
>
> > > I have a set of tiddlers that contain information in slices (eg
> > > /%
> > > |parameter1|data1|
> > > |parameter2|data2|
> > > %/
>
> > > I want to be able to sort these tiddlers according to a slice
> > > parameter someting like...
>
> > > < > > 'slice value of parameter1' write '
>
> > > this obviously does not work..can I use a reasonably simple
> > > javascript expression to sit in the sortBy expression?
>
> > This didn't 
> > work?:http://groups.google.com/group/tiddlywiki/browse_thread/thread/f73eeb...
> > sortBy 'store.getTiddlerText(tiddler.title+"::parameter1","")'
>
> > Cheers Måns Mårtensson
>
> On 28 mar, 03:14, Måns  wrote:
>
>
>
>
>
>
>
> > Hi Skye
>
> > > I have a set of tiddlers that contain information in slices (eg
> > > /%
> > > |parameter1|data1|
> > > |parameter2|data2|
> > > %/
>
> > > I want to be able to sort these tiddlers according to a slice
> > > parameter someting like...
>
> > > < > > 'slice value of parameter1' write '
>
> > > this obviously does not work..can I use a reasonably simple
> > > javascript expression to sit in the sortBy expression?
>
> > This didn't 
> > work?:http://groups.google.com/group/tiddlywiki/browse_thread/thread/f73eeb...
> > sortBy 'store.getTiddlerText(tiddler.title+"::parameter1","")'
>
> > Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: sort on TiddlerSlice

2012-03-29 Thread skye riquelme
.still cant get it to work

..I now have
< wrote:
> Hi Skye
>
> > I have a set of tiddlers that contain information in slices (eg
> > /%
> > |parameter1|data1|
> > |parameter2|data2|
> > %/
>
> > I want to be able to sort these tiddlers according to a slice
> > parameter someting like...
>
> > < > 'slice value of parameter1' write '
>
> > this obviously does not work..can I use a reasonably simple
> > javascript expression to sit in the sortBy expression?
>
> This didn't 
> work?:http://groups.google.com/group/tiddlywiki/browse_thread/thread/f73eeb...
> sortBy 'store.getTiddlerText(tiddler.title+"::parameter1","")'
>
> Cheers Måns Mårtensson

On 28 mar, 03:14, Måns  wrote:
> Hi Skye
>
> > I have a set of tiddlers that contain information in slices (eg
> > /%
> > |parameter1|data1|
> > |parameter2|data2|
> > %/
>
> > I want to be able to sort these tiddlers according to a slice
> > parameter someting like...
>
> > < > 'slice value of parameter1' write '
>
> > this obviously does not work..can I use a reasonably simple
> > javascript expression to sit in the sortBy expression?
>
> This didn't 
> work?:http://groups.google.com/group/tiddlywiki/browse_thread/thread/f73eeb...
> sortBy 'store.getTiddlerText(tiddler.title+"::parameter1","")'
>
> Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: sort on TiddlerSlice

2012-03-28 Thread Måns
Hi Skye

> I have a set of tiddlers that contain information in slices (eg
> /%
> |parameter1|data1|
> |parameter2|data2|
> %/
>
> I want to be able to sort these tiddlers according to a slice
> parameter someting like...
>
> < 'slice value of parameter1' write '
>
> this obviously does not work..can I use a reasonably simple
> javascript expression to sit in the sortBy expression?

This didn't work?: 
http://groups.google.com/group/tiddlywiki/browse_thread/thread/f73eeb873c3a5e0/5ec9a76bb9c3b8b1
sortBy 'store.getTiddlerText(tiddler.title+"::parameter1","")'

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.