views:

58

answers:

1

Hi there,

I want to reuse outputted data from a view in another view. like this reduced and grouped data:

{"rows":[
{"key":"cool","value":3},
{"key":"einzigartig","value":1},
{"key":"mega","value":1},
{"key":"nice","value":1},
{"key":"spitze","value":1},
{"key":"super","value":2}
]}

...because I want to interchange key <> value so that the output gets sorted by value. This is mainly for sorting tags from documents by count, descanding.

Sorry 4 my bad english :)

Best regards

+1  A: 

Hi.

That is a great idea, and many people want to do it. Unfortunately, there is no automatic way to "sort by value." You will have to insert the rows back into the database. (You can use the current database, or use a dedicated database just for this sort.)

I think somebody will make a tool to do this one day. However, now, you need to do it in your own application. Good luck!

jhs