Bug: Default Sorting not being honored #314

Closed
opened 2025-10-07 00:10:11 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @kmendell on GitHub.

Originally assigned to: @kmendell on GitHub.

If I open one of the other urls

Https://pocketid.Domain.com/settings/admin/users

Or ..

.../settings/admin/user-groups
.../settings/admin/user-groups/6a1asdf-asd-asd-asd-asdasd (users in group)
.../settings/admin/oidc-clients

The sorting is wrong. I must first select sort by FriendlyName.
It sorts fine on your fixed page but not on other urls.

Maybe it’s easy for you to fix also the other ‚tables‘

Originally posted by @PaddyPat in #63

The default sorting is not being honored on all tables. See lines 43-58 (114e31e60e/frontend/src/routes/settings/admin/users/group-selection.svelte) on how i fixed this in the user page.

Originally created by @kmendell on GitHub. Originally assigned to: @kmendell on GitHub. > If I open one of the other urls > > Https://pocketid.Domain.com/settings/admin/users > > Or .. > > .../settings/admin/user-groups > .../settings/admin/user-groups/6a1asdf-asd-asd-asd-asdasd (users in group) > .../settings/admin/oidc-clients > > The sorting is wrong. I must first select sort by FriendlyName. > It sorts fine on your fixed page but not on other urls. > > Maybe it’s easy for you to fix also the other ‚tables‘ _Originally posted by @PaddyPat in [#63](https://github.com/pocket-id/pocket-id/issues/63#issuecomment-2698696533)_ The default sorting is not being honored on all tables. See lines 43-58 (https://github.com/pocket-id/pocket-id/blob/114e31e60e6ad7cf31c9e0c415b83ccd77037e32/frontend/src/routes/settings/admin/users/group-selection.svelte) on how i fixed this in the user page.
Author
Owner

@kmendell commented on GitHub:

@PaddyPat Oh i see the the sorting is just not working by default? Okay i can look into this and see if i can fix that.

@kmendell commented on GitHub: @PaddyPat Oh i see the the sorting is just not working by default? Okay i can look into this and see if i can fix that.
Author
Owner

@kmendell commented on GitHub:

@PaddyPat the fixes should be implemented with this PR fix: sorting not applying on page load #303

@kmendell commented on GitHub: @PaddyPat the fixes should be implemented with this PR [fix: sorting not applying on page load #303](https://github.com/pocket-id/pocket-id/pull/303)
Author
Owner

@PaddyPat commented on GitHub:

Sorting is fine in 0.36 on page

--

Sorting is fine on page

Br

@PaddyPat commented on GitHub: Sorting is fine in 0.36 on page * https://pocketid.domain.com/settings/admin/users but if I edit a user on https://pocketid.domain.com/settings/admin/users, the new „User Groups“ is not sorted (AtoZ) https://pocketid.domain.com/settings/admin/users/1b945c73-bad1-4350-….. -- Sorting is fine on page * https://pocketid.domain.com/settings/admin/user-groups but if I edit a Group to display users, these users are not sorted (AtoZ) https://pocketid.domain.com/settings/admin/user-groups/45de59ce-6fde-……. On this page clicking on column "Name"does also not sort Br
Author
Owner

@kmendell commented on GitHub:

Can you attach a picture of what you are seeing?

@kmendell commented on GitHub: Can you attach a picture of what you are seeing?
Author
Owner

@PaddyPat commented on GitHub:

  1. Edit User
Image Image
  1. Edit Groups (sorting also ignored by click on "name" row)
Image Image
@PaddyPat commented on GitHub: 1) Edit User <img width="1145" alt="Image" src="https://github.com/user-attachments/assets/aa8da76d-4941-411b-94ae-eda9648a93a8" /> <img width="1125" alt="Image" src="https://github.com/user-attachments/assets/6782f1ca-b606-4d54-bb4d-4c3b9f555cad" /> 2) Edit Groups **(sorting also ignored by click on "name" row)** <img width="1343" alt="Image" src="https://github.com/user-attachments/assets/83321335-64a8-402d-bdcf-10765cb763fb" /> <img width="1075" alt="Image" src="https://github.com/user-attachments/assets/1c9320b5-1fd0-4661-83a4-3b0a4c8af940" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#314