JrCore_list order with multiple facters
Using Jamroom
Trying to list item order using multiple factors. For example by rating and then by total count, so an object that was rated 5 four times will be listed before an object rated 5 only one time.
Using above example understand that I would have to use the following two fields...
First
audio_rating_1_average_count numerical_desc
Then
audio_rating_overall_count numerical_desc
but not sure proper way to add it into the code. Checked
https://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list and tried a number of experiments but could not get it to work. Also tried using... but could not get it to work.
order_by1="audio_rating_overall_average numerical_desc" order_by2="audio_rating_overall_count numerical_desc"
There are also a variations in the code throughout the skin templates where list orders would have to be applied, would be good if knew how to apply it in all cases.
Here are the various code setups where this would apply.
Setup 1 - {$order_by = "audio_rating_1_average_count NUMERICAL_DESC"}
Setup 2 - {jrCore_list module="jrAudio" order_by="audio_rating_overall_average_count numerical_desc" quota_id=$_conf.AzamraNew_artist_quota search1="profile_active = 1" template="index_top_singles_rating_row.tpl" require_image="audio_image" pagebreak="6" page=$_post.p}
Setup 3 - {assign var="order_by" value="audio_rating_1_average_count NUMERICAL_DESC"}
Thanks
updated by @mysong: 09/13/14 02:39:20AM