klutter icon indicating copy to clipboard operation
klutter copied to clipboard

Sort order not alphabetic

Open ChrisFhey opened this issue 2 years ago • 4 comments

Issue description

The comics in my Klutter app are not sorted alphabetically but seem to be sorted by updated date, even though the Komga web interface sorts them correctly.

Steps to reproduce the behavior

  1. Open the Klutter app
  2. Open a library
  3. In the browse tab, comics are not sorted correctly

Expected result

Comics are sorted alphabetically.

Actual result

Comics seem to be sorted by recently updated.

Additional information

  • Klutter version: 0.7.0
  • Operating system: Ipad OS 16.1.1
  • Device: iPad pro 11" 2018
  • Komga version: 0.157.5

ChrisFhey avatar Dec 14 '22 08:12 ChrisFhey

I've looked at the Komga REST API and it looks like this is caused by the default sorting setting for series being set to date added. I'm not sure whether this is a bug or is intended behaviour in Komga, but it seems odd either way.

It could potentially be fixed in Klutter by adding a sort to the API call as such: /api/v1/series?sort=name, but I think this should be changed in Komga instead.

ChrisFhey avatar Dec 16 '22 13:12 ChrisFhey

That's interesting. Consider asking gotson in the komga discord, but it might be that sorting it via the API call is better.

frameset avatar Dec 16 '22 15:12 frameset

I created an issue in the Komga repository earlier where someone did mention the default sort was changed due to a technical reason and it should be sorted in the apps. But I'm hoping Gotson might chime in there as well.

ChrisFhey avatar Dec 16 '22 17:12 ChrisFhey

Gotson has indicated that they will not fix it and that it’s up to the apps to use the sort param in the api.

ChrisFhey avatar Dec 17 '22 11:12 ChrisFhey