INTERACT FORUM

Please login or register.

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

Author Topic: Help with Smartlists  (Read 1718 times)

vvduke

  • Member
  • *
  • Posts: 3
Help with Smartlists
« on: October 15, 2011, 10:45:30 am »

I am trying to make a Smartlist with songs that have a "Date" not in the past year, which is easy, but I want to limit it to 10 songs least recently played.  I have added a Sort By modifier on "Last Played (a-z)" but unplayed songs show up as GREATER THAN songs that have been played, rather then LESS THAN songs that have played.  Based on that crazy logic, unplayed songs will NEVER PLAY!  Is there a way around this?  What am I missing here and what insane programmer decided that none comes after any?

Thanks for any help you can give,

-VVDuke
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Help with Smartlists
« Reply #1 on: October 15, 2011, 04:17:26 pm »

Create an expression field [Last Played.Sort] using...

If(IsEqual([Last Played], never played), 0, [Last Played, 0])

...and use that in your Smartlist.
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Help with Smartlists
« Reply #2 on: October 16, 2011, 04:39:49 am »

what rick says.. and besides that you could see if options>tree & view>sorting>sort empty string last, might help.  :)
Logged

vvduke

  • Member
  • *
  • Posts: 3
Re: Help with Smartlists
« Reply #3 on: October 16, 2011, 11:57:30 am »

Thank you both!  It's very frustrating as a new user of this fine software, spending an hour looking through settings and trying different things to make something so simple work.

VVDuke
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Help with Smartlists
« Reply #4 on: October 16, 2011, 06:46:38 pm »

what rick says.. and besides that you could see if options>tree & view>sorting>sort empty string last, might help.  :)

Thanks, I missed that. It was set, of course, or I wouldn't have needed the workaround. It only took me a minute to appreciate the list behaviour it creates (which I was taking for granted). In the context of a list, the meaning of an empty field is very often "not applicable" or "irrelevant" (e.g., arguably, [Last Played] for tracks never played). Those always being put at the end of a sorted list is a valuable convenience. Those insane programmers do such clever things! ;)
Logged

vvduke

  • Member
  • *
  • Posts: 3
Re: Help with Smartlists
« Reply #5 on: October 16, 2011, 06:55:58 pm »

Well, I do appreciate the flexibility, but believe it would be far smarter to have the default set as never played is less than ever played.

VVDuke
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Help with Smartlists
« Reply #6 on: October 16, 2011, 08:14:07 pm »

Quote
Well, I do appreciate the flexibility, but believe it would be far smarter to have the default set as never played is less than ever played.

From the perspective of it's impact on a smartlist, perhaps. But the purpose of the option is to improve list behaviour. If it were not on by default, it would never occur to most users such an option exists. On the other hand, users creating smartlists of the type impacted by this will just use the capability of the expression language to do whatever is required—as my workaround illustrates. So I believe the default was well considered, and the "smarter" option chosen.

This is a good illustration of why the developers are reluctant to add an option for every alternate behaviour requested. Even those well considered and appreciated for many can create confusion and draw criticism.
Logged
Pages: [1]   Go Up