INTERACT FORUM

Please login or register.

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

Author Topic: GroupCount Help - Possible Bug in Sorting [SOLVED]  (Read 462 times)

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
GroupCount Help - Possible Bug in Sorting [SOLVED]
« on: March 30, 2021, 10:03:18 am »

Hi, I've just discovered GroupCount, I've been using global variables to do the counting before. I have a couple of questions

Is using GroupCount faster than using global variables? If not I'll just stick with global variables.

And also I can't seem to sort the pane by the GroupCount expression itself.

For example

Expression to group by:  [Genre]
Expression to display:  (GroupCount()) [Genre]
Settings - Sorting:  Display Expression

I'd expect this to sort the pane by groupcount itself. But it doesn't work. Upon saving the view and then reopening it. It turns up blank and Expression to group by & expression to display is empty even though I saved it initially with fields and expressions.

Is this a bug in the Sorting settings? Can anyone else confirm this?

Thanks



Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: GroupCount Help - Possible Bug in Sorting
« Reply #1 on: March 30, 2021, 10:10:21 am »

I just tried this view and all the genres are correctly sorted by the group count in front of them.
Logged
Matt Ashland, JRiver Media Center

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Re: GroupCount Help - Possible Bug in Sorting
« Reply #2 on: March 30, 2021, 10:18:42 am »

So they are sorted numerically rather than alphabetically? I wonder what I'm doing wrong.

The view doesn't save properly on my end, the expressions disappear upon saving, when I change the sorting settings to Display expression

I haven't updated in a while. I'll update & try again. Thanks Matt
Logged

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Re: GroupCount Help - Possible Bug in Sorting
« Reply #3 on: March 30, 2021, 11:10:41 am »

Got it working thanks Matt. Still don't know what I was doing wrong lol. Thanks again for your assistance.
Logged
Pages: [1]   Go Up