New feature: Sort by "Media Label" field with natu

Comments on existing version & Suggestions for future versions. If you want a new feature suggest it here. Discussions about beta versions also come in this section.
Post Reply
igorx
Posts: 2
Joined: 2009-01-13 03:16:43

New feature: Sort by "Media Label" field with natu

Post by igorx »

When sorting by this field, i think, it is necessary to use the algorithm of sorting at which the order of alphanumeric lines will be habitual for the person. This is described as a "natural ordering".
For example:

Code: Select all

The initial data:
   1
  13
   2
  20
 a12
  a1
  a4
 1-1
10-1
2-10
2-11

Standard sorting:
   1
 1-1
10-1
   2
  13
2-10
2-11
  20
  a1
 a12
  a4

Natural order sorting:
   1
 1-1
   2
2-10
2-11
10-1
  13
  20
  a1
  a4
 a12
Generally speaking, natural order sorting it is necessary to use in any sorting in AMC, imho...
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Do you have some Delphi code which does it?
I could add that easily but I do not wish to write that myself, I guess it must exist. I searched some time ago but I guess I did not find something convincing...
igorx
Posts: 2
Joined: 2009-01-13 03:16:43

Post by igorx »

I have not, sorry, but search over Internet by google can give positive result.
If you want, I can search, but I do not know Delphi and it is difficult for me to determine, what code is working, and what no...
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Sure, I asked just in case of ;)
Yes, it is probably easy to find and integrate in the program, I just have to take some time for that, like for all other features of my to-do list :/
Melmoth
Posts: 32
Joined: 2006-08-21 21:40:11

Post by Melmoth »

@ igorx: if you are missing this feature or if you have issues sorting your stuff just add zeros to fill missing digits. Works fine in every application and with files in any kind of explorer.

E.g.: 0001 instead of 1 (max of 9999 items then); 01-01 instead of 1-1

Via csv export you can edit the format of the numbers with excel (or the open office pendant) and save a lot of typing.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

With a script it is also easy to add these numbers. I already wrote such script, but it is maybe not easy to find it on the forum.
Post Reply