INTERACT FORUM

More => Old Versions => Media Center 15 (Development Ended) => Topic started by: pahunt on August 22, 2010, 10:04:13 am

Title: Sort by number of plays
Post by: pahunt on August 22, 2010, 10:04:13 am
Hi,

I have a playlist that sorts by the number of plays field but it is not working as I would expect when a track has never been played. Instead of being treated as if it has been played zero times, it seems to be treated as if it has been played a huge number of times. What this means is that it appears at the end of the list and not the beginning.

Is there a way to get the behaviour I want?
Title: Re: Sort by number of plays
Post by: MrC on August 22, 2010, 12:33:28 pm
Create an Expression Column:

=If(isempty([Number Plays]),0,[Number Plays])

and sort by it.
Title: Re: Sort by number of plays
Post by: Alex B on August 22, 2010, 12:46:34 pm
... or change the sorting behavior globally:

Tools > Options > Tree & View > Sorting > Sort empty strings last  (untick)
Title: Re: Sort by number of plays
Post by: pahunt on August 22, 2010, 01:54:25 pm
Thanks very much for those answers. Just what I needed.