Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting by "Default" (Unsorted) doesn't take effect #16370

Open
7 tasks done
dagwieers opened this issue Jul 12, 2019 · 5 comments
Open
7 tasks done

Sorting by "Default" (Unsorted) doesn't take effect #16370

dagwieers opened this issue Jul 12, 2019 · 5 comments
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@dagwieers
Copy link
Contributor

dagwieers commented Jul 12, 2019

Bug report

Describe the bug

If you change a listing in Kodi from Sort by <something> to Sort by Default (which is SORT_METHOD_UNSORTED) there is no effect on the listing.

Expected Behavior

The listing should be refreshed using the (original) Unsorted view.

Actual Behavior

Nothing happens as if it is broken.

Possible Fix

So after going through the code it appears that the original list is being sorted, and obviously once you sort that original list (and don't keep the original) it cannot be unsorted anymore. You basically lost the original order of that list.

One solution would be to keep the original list. But a more simpler solution would be to refresh the listing after Sort by Default was selected. In this case you don't need to keep the original listing, and the user does get an unsorted/original order back.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a listing that uses a Default (unsorted)order to show entries in a very specific order
  2. Then select Sort by <something> to order the list by some other characteristic
  3. Then select again Sort by Default and see nothing happens
  4. Go back
  5. Return to the listing, and notice it is now being rebuild with the Default (unsorted) order.

Debuglog

A debuglog makes no sense for this issue.

Screenshots

Here is a chronological set of screenshots.

The original screen sorted by Default
screenshot012

The listing now sorted by Name
screenshot013

The listing again sorted by Default
screenshot014

You can see that the sorted by Default did not restore the original listing, you simply get the same ordering as sorted by Name. Which is strange and confusing and feels pretty much like a bug.

Additional context or screenshots (if appropriate)

A lot of addons use the Unsorted order to influence the order in a specific way that is currently not supported by Kodi. For instance the order is provided by the content provider but cannot be reproduced by any characteristic.

If you would change the order, and go back to Default (unsorted) the original order is not restored until you leave that view/listing and go back. But that is counterintuitive, most people would not understand and change the order a few times. Most likely they would not keep it to Default (unordered) so wouldn't learn refreshing the view fixes the original order. So it feels very much like a bug (even if this behaviour could be rationalized, it requires knowledge of the implementation).

Your Environment

The used Operating system is irrelevant for this issue, all are affected.

  • Android

  • iOS

  • Linux

  • OSX

  • Raspberry-Pi

  • Windows

  • Windows UWP

  • Operating system version/name: LibreELEC or Windows or Android, or...

  • Kodi version: 18.2 (but also previous versions)

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Jul 12, 2019
@dagwieers dagwieers changed the title Sorting by **Default** (Unsorted) doesn't take effect Sorting by "Default" (Unsorted) doesn't take effect Jul 12, 2019
@bigretromike
Copy link
Contributor

bigretromike commented Aug 1, 2019

It does work only when you re-enter the directory you set that view on.
Been there for like 2 versions now.
Around time I had this issue: #14573

We simply "record" what you set there and set in while building the content next time - as a workaround

@quickmic
Copy link

I can confirm this issue

@rysson
Copy link

rysson commented Jan 4, 2022

Yes, I stuck on this issue too.
unsorted doesn't back to original (unsorted) order, just skip sorting (leave last selected).

Checked on

  • Kodi 19
  • Kodi 20.0-ALPHA1 (10.90.101), Git: 20220104-56530f2222

Copy link

github-actions bot commented Aug 6, 2024

This issue is now marked stale because it has been open over a year without activity. Remove the stale label or add a comment to reset the stale state.

@github-actions github-actions bot added the Stale label Aug 6, 2024
@bigretromike
Copy link
Contributor

Not relevant any more on 21. Omega.

@github-actions github-actions bot removed the Stale label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

4 participants