Order by Listing?

michaeld
michaeld
@michael-d
10 years ago
92 posts
Hi,

What are the different listing options for order by random, ascending, descending, etc....

I dont see any available documentation for these modifiers. I would like to list bands randomly instead of by plays, etc...


--
Thank You
~Michael
Audio Engineer | Graphic and Design |

https://www.damatoproduction.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com
https://www.playgroundz.rocks

updated by @michael-d: 06/03/14 12:00:12AM
paul
@paul
10 years ago
4,326 posts
order_by in a jrCore_list call always needs a field name, even for random, so options might be -

order_by="_created RANDOM"
order_by="profile_name ASC"
order_by="user_name DESC"
order_by="_created NUMERICAL_ASC"
order_by="event_date NUMERICAL_DESC"

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
michaeld
michaeld
@michael-d
10 years ago
92 posts
Hi,

Is there any documentation oh this yet? What would be for song plays, song rating, most viewed, etc...?


--
Thank You
~Michael
Audio Engineer | Graphic and Design |

https://www.damatoproduction.com
https://www.HomeStudioMusicProduction.com
https://www.ShotsInOrder.com
https://www.playgroundz.rocks
brian
@brian
10 years ago
10,148 posts
mdamato:
Hi,

Is there any documentation oh this yet? What would be for song plays, song rating, most viewed, etc...?

All of this is in the jrCore_list documentation:

https://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
paul
@paul
10 years ago
4,326 posts
You can order by any DataStore field. Look on the appropriate DataStore to see what you have. Eg. audio_file_stream_count
audio_rating_overall_average_count
audio_rating_overall_count
profile_view_count


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,713 posts
Added an "Order_by" section to the docs.

Tags