Bookplayer: Playlist not sorted properly

Created on 15 Nov 2018  路  6Comments  路  Source: TortugaPower/BookPlayer

  • Do you want to request a feature or report a bug?
    Report a bug

  • What is the current behavior?
    I have a playlist of files titled "Chapter 1", "Chapter 2", "Chapter 3", etc. When I try to sort them using the new sort feature added in v3.2.0 they are sorted as: "Chapter 1", "Chapter 10", "Chapter 11", "Chapter 2", instead of the correct order (like in Finder or Files.app)

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo / screenshot / screen recording of the problem.
    img_d4fec02a4d4b-1

  • What is the expected behavior?
    For the files to be ordered correctly, like in Finder or Files.app

  • What is the motivation / use case for changing the behavior?
    To be able to listen to audiobooks broken into multiple files in the correct order

  • Please tell us about your environment:

    • Version of BookPlayer: v3.2.0
    • Your Device and its OS version: iPhone 6s, iOS 12.1
  • Other information
    I think this can be solved by using the NSString.CompareOptions.numeric option to compare filenames when sorting the files

bug

All 6 comments

Are you sorting on filename or on title?

Filename, but I just tried and sorting by the title doesn鈥檛 work properly either.

Ok. I鈥檒l take a look. Thanks for pointing it out.

I ran into this while I was refactoring some things, turns out we had to use .numeric as an option for the NSSortDescriptor. The fix is included in the batch edit PR #289

closed by #290

This works great in the new update. Thanks for you hard work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bensaufley picture bensaufley  路  5Comments

anthonyattard picture anthonyattard  路  5Comments

pichfl picture pichfl  路  5Comments

Resonanz picture Resonanz  路  3Comments

baron picture baron  路  4Comments