INTERACT FORUM

Please login or register.

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

Author Topic: Sorting change  (Read 395 times)

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Sorting change
« on: February 22, 2020, 12:04:50 pm »

When sorting by number of plays, make no data in this field be treated as a value of 0. Right now, if I'm sorting by increasing order of plays, I get files with 1 view first, and files with 0 view at the very end of the list, after the files with most views. Done
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Re: Feature Requests
« Reply #1 on: February 22, 2020, 02:30:01 pm »

When sorting by number of plays, make no data in this field be treated as a value of 0. Right now, if I'm sorting by increasing order of plays, I get files with 1 view first, and files with 0 view at the very end of the list, after the files with most views.

What do you have set in "Options > Tree & View > Sorting > Sort empty strings last"

While [Number Plays] is an Integer not a String, that setting seems to affect the sort anyway.

Also read "Field Values: Empty, 0, and 1" in https://wiki.jriver.com/index.php/Expression_Language
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Re: Feature Requests
« Reply #2 on: February 22, 2020, 02:37:49 pm »

What do you have set in "Options > Tree & View > Sorting > Sort empty strings last"
It was checked! After I unchecked: the empty values are treated as "0" and my playlist by increasing order of number of plays now makes sense.

But now, If I want another playlist with sorting by decreasing order of number of plays (popular files), all the files with an empty value in the Number of plays are placed first, which makes no sense. So this option does not appear to be a substitute to an empty value in "number of plays" field being treated as a value of 0 view. Sure I can exclude the files with 0 play from the playlist, but it's only a fix.
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Re: Feature Requests
« Reply #3 on: February 22, 2020, 04:52:54 pm »

You are correct.

Turning that setting off just seems to sort empty values to the beginning all the time. Empty values should probably be treated as a value of Zero, as per the Wiki.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41958
  • Shoes gone again!
Re: Sorting change
« Reply #4 on: March 17, 2020, 06:55:35 am »

This turned into kind of a long discussion, but I thought I could mention that I noticed some strange behavior, and made this fix to a recent build:
Fixed: Sorting of number style lists would not treat empty elements as zero properly.

Cheers.
Logged
Matt Ashland, JRiver Media Center

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Sorting change
« Reply #5 on: March 17, 2020, 05:06:39 pm »

Thanks for the update Matt. I saw the change and thought it would have been driven by this thread.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner
Pages: [1]   Go Up