Sort by Year
Posted: Sun Jan 30, 2011 7:48 pm
I am trying to modify the following, so that the oder of the year displayed as containers is displayed in reverse order
at present, it gives a list starting from 1900 and descending down 2010
but would like it to give a listing from for ex: 2010 and descend down to 1900
[code]
<container name='By Genre' id='video/genre' createClass='object.item.videoItem.movie' class='object.container' >
<container buildon='upnp:genre' createClass='object.item.videoItem.movie' class='object.container' />
</container>
[/code]
I have tried to add any of the following to the to root container or the buildon container,
and have not been able to make it work
sortcriteria='+pv:year'
sortcriteria='-pv:year'
sortcriteria='+pv:date'
sortcriteria='-pv:date'
Is there something wrong with sorting by year or is it a not able to do this with containers or builon?
at present, it gives a list starting from 1900 and descending down 2010
but would like it to give a listing from for ex: 2010 and descend down to 1900
[code]
<container name='By Genre' id='video/genre' createClass='object.item.videoItem.movie' class='object.container' >
<container buildon='upnp:genre' createClass='object.item.videoItem.movie' class='object.container' />
</container>
[/code]
I have tried to add any of the following to the to root container or the buildon container,
and have not been able to make it work
sortcriteria='+pv:year'
sortcriteria='-pv:year'
sortcriteria='+pv:date'
sortcriteria='-pv:date'
Is there something wrong with sorting by year or is it a not able to do this with containers or builon?