Inbox (technical)

Bugs, ideas, questions and suggestions about MangaBaka.

Sorting library by available/fewest chapters is not working as intended

opened by bron99 2 months, 5 days
Done Bug Website My Library

## Steps to reproduce

1. Visit any library page (yours/others) e.g. https://mangabaka.org/u/OrbAppreciator/library?sort_by=available_chapters_desc 2. Try to sort by either fewest/most chapters available 3. Results will be random

## What did you *expect* to happen?

I would expect the library entries to be properly sorted, as in:

total chapter count - user chapter count = result

Then either it is ascending (fewest available) or descending (most available)

If result is 0 (series is completed) -> use total chapter count value as a fallback (and sort it that way, e.g. completed series with 175 chapters should show up before completed series with 80 chapters when sorting by most available, even tho the result is 0 for the user, however if he were to reread, it would make sense for the highest number to be sorted first) This should only apply to completed series in itself, for the outer sort, they are still 0 in that regard

If user chapter count is 0, result should be just total chapter count available (and be sorted with titles that are in progress)

## What *actually* happened?

Right now sorting only seems to work for series that are in progress (e.g. 88 / 230 chapters), however results where user has 0 progress or max progress are not sorted and appear randomly

## Where

- https://mangabaka.org/u/OrbAppreciator/library?sort_by=available_chapters_desc

## Environment

- Device: Desktop - OS: Windows - Browser: Opera 135 - Site version: 9cf154e07be1 - Viewport: 1878x931 - Device pixel ratio: 1 - Light/dark mode: Dark - Language: en-GB

Closed 2 months, 2 days ago.

Referenced in

Comments

Loading comments...