INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Sort by number of plays  (Read 1166 times)

pahunt

  • World Citizen
  • ***
  • Posts: 236
Sort by number of plays
« 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?

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Sort by number of plays
« Reply #1 on: August 22, 2010, 12:33:28 pm »

Create an Expression Column:

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

and sort by it.
Logged
The opinions I express represent my own folly.

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Sort by number of plays
« Reply #2 on: August 22, 2010, 12:46:34 pm »

... or change the sorting behavior globally:

Tools > Options > Tree & View > Sorting > Sort empty strings last  (untick)
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Sort by number of plays
« Reply #3 on: August 22, 2010, 01:54:25 pm »

Thanks very much for those answers. Just what I needed.
Pages: [1]   Go Up