The reason why mp3´s listed wrong in server folder ??

2 replies
Hi,

I have uploaded 10 mp3´s to a folder on my server
Folder content generates playlist for wordpress mp3 player plugin.
Done this to two different hosting providers account I have.

The player works great except...


Mp3´s get listed like below order in folder:

1
10
2
3
4
5
6
7
8
9

If I put in a file number 11 it will be listed under number 10.
This looks shitty in the mp3 playlist that get generated.

Anyone who understand why this is and if there is anything I can do about it ?

The developer wont do anything anymore, he have sent me two files that brakes the player completely instead. He say it works on his side even though I have tested on a Hostgator account another hostingprovider.
#folder #listed #mp3´s #reason #server #wrong
  • Profile picture of the author emptee
    Hi myyoulo,

    Technically they're getting sorted correctly - they are being sorted alphabetically, rather than numerically.

    An easy, code free fix you could do... is to simply rename the files so they sort correctly, even in alphabetical order, eg:

    01
    02
    03
    04
    05
    06
    07
    08
    09
    10
    11
    ... you get the idea

    Cheers,
    michael

    Originally Posted by myyoulo View Post

    Hi,

    I have uploaded 10 mp3´s to a folder on my server
    Folder content generates playlist for wordpress mp3 player plugin.
    Done this to two different hosting providers account I have.

    The player works great except...


    Mp3´s get listed like below order in folder:

    1
    10
    2
    3
    4
    5
    6
    7
    8
    9

    If I put in a file number 11 it will be listed under number 10.
    This looks shitty in the mp3 playlist that get generated.

    Anyone who understand why this is and if there is anything I can do about it ?

    The developer wont do anything anymore, he have sent me two files that brakes the player completely instead. He say it works on his side even though I have tested on a Hostgator account another hostingprovider.
    {{ DiscussionBoard.errors[9954479].message }}
    • Profile picture of the author myyoulo
      A small detail like that made it work. I tested with 111 which also worked...thanks
      {{ DiscussionBoard.errors[9962262].message }}

Trending Topics