The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.34 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
Basic error in numerical sorting of album names
11-01-2014, 16:51
Post: #1
Basic error in numerical sorting of album names
I have just installed MinimServer on my Synology DS412+ and in general I am very impressed with its capabilities, however the sorting of album names including numbers from a MinimServer library scan has a fundamental error in the algorithm used.
MinimServer read my iTunes library and found no errors. For classical music I use the 'album' field for the title of the work. In iTunes my recordings of Bach cantatas are listed:
………….
Bach - Cantata No.199
Bach - Cantata No.200
Bach - Cantata No.201
………...
etc etc
In MinimServer the Bach cantatas are listed:
………….
Bach - Cantata No.199
Bach - Cantata No.2
Bach - Cantata No.200
Bach - Cantata No.201
………...
etc etc
Obviously the sorting in MinimServer is being done purely on character 'value'. This will be incorrect for numbers. If a number is encountered the next character should be read and a numerical value accumulated by multiplying the previous integer by 10 and adding this to the current integer value. This should be repeated until a non-numeric character is reached. Sorting should then be done using the accumulated number.

Any likelihood that this error can be corrected?

David

System: ALAC iTunes library on Synology DS923+ (running MinimServer) > NetGear router > Optical isolation > dCS Network Bridge (controlled by Galaxy Tab S2 tablet running BubbleUPnP&Mosaic) > PS Audio DirectStream DAC > Primare A60 > Harbeth SHL5plus 40th Anniversary model
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Basic error in numerical sorting of album names - DavidL - 11-01-2014 16:51

Forum Jump:


User(s) browsing this thread: 1 Guest(s)