default organization repository sort order #4228

Open
opened 2025-11-02 05:43:07 -06:00 by GiteaMirror · 18 comments
Owner

Originally created by @agaida on GitHub (Nov 2, 2019).

  • Gitea version (or commit ref): current
  • all the other things are not relevant for this feature request

Description

Hi, there was several good bug reports about repository sort order but unfortuately all fall short.
Default sorting order should be configurable - best example is a 'morgue' or 'basement' organization - nobody will care when the last commit was done on dead projects - the natural order here would be maybe alphabetic or rev. alpha. So it would be nice if one would be able to set this per org.

Originally created by @agaida on GitHub (Nov 2, 2019). - Gitea version (or commit ref): current - all the other things are not relevant for this feature request ## Description Hi, there was several good bug reports about repository sort order but unfortuately all fall short. Default sorting order should be configurable - best example is a 'morgue' or 'basement' organization - nobody will care when the last commit was done on dead projects - the natural order here would be maybe alphabetic or rev. alpha. So it would be nice if one would be able to set this per org.
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 05:43:07 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 2, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 2, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@mb2g17 commented on GitHub (Oct 21, 2021):

I second this: sometimes I do commits on old projects to tweak readmes, but I don't want them surfacing to the top of my repositories page. Setting a default sort would be really helpful for this.

For example, the default could remain Recently updated, but there exists some app.ini config property / user property / org property to change it to some other values, like Newest.

@mb2g17 commented on GitHub (Oct 21, 2021): I second this: sometimes I do commits on old projects to tweak readmes, but I don't want them surfacing to the top of my repositories page. Setting a default sort would be really helpful for this. For example, the default could remain `Recently updated`, but there exists some `app.ini` config property / user property / org property to change it to some other values, like `Newest`.
Author
Owner

@ddetton commented on GitHub (Feb 8, 2023):

Default sort order should be implemented for everything. Most important would be orgs and repos. I don't care what the default is, as long as there is a way to override it.

@ddetton commented on GitHub (Feb 8, 2023): Default sort order should be implemented for everything. Most important would be orgs and repos. I don't care what the default is, as long as there is a way to override it.
Author
Owner

@CrysK commented on GitHub (Mar 15, 2023):

I'm also looking for a way to default sort, especially for the issue tracker (recently updated first).
Is there a way to set a default meanwhile?

@CrysK commented on GitHub (Mar 15, 2023): I'm also looking for a way to default sort, especially for the issue tracker (recently updated first). Is there a way to set a default meanwhile?
Author
Owner

@micka190 commented on GitHub (Sep 11, 2023):

Also interested in sorting issues by recently updated first. It's a drag to have to go through multiple issues (sometimes multiple pages) to find the ones that are actively being worked on/discussed.

Edit: For clarity, this is referring to the issues in individual repositories. Gitea's "Issues" page itself seems to already sort by recently updated.

@micka190 commented on GitHub (Sep 11, 2023): Also interested in sorting issues by recently updated first. It's a drag to have to go through multiple issues (sometimes multiple pages) to find the ones that are actively being worked on/discussed. Edit: For clarity, this is referring to the issues in individual repositories. Gitea's "Issues" page itself seems to already sort by recently updated.
Author
Owner

@bobmagicii commented on GitHub (Feb 24, 2024):

yeah i really wish it would default to sorting by alpha on all our orgs, we aren't treating dev as a race and people just need to be able to find things they need in a consistent way that the alphabet provides. such that, my team uses a tampermonkey script to redirect to ?sort=alphabetically if we visit without a sort set.

in my mind, i feel like the front end should remember that in local storage or something. then like the tampermonkey, its per user choice where they left it.

@bobmagicii commented on GitHub (Feb 24, 2024): yeah i really wish it would default to sorting by alpha on all our orgs, we aren't treating dev as a race and people just need to be able to find things they need in a consistent way that the alphabet provides. such that, my team uses a tampermonkey script to redirect to ?sort=alphabetically if we visit without a sort set. in my mind, i feel like the front end should remember that in local storage or something. then like the tampermonkey, its per user choice where they left it.
Author
Owner

@TimoNotonica commented on GitHub (Mar 1, 2024):

Same for me. Define default sort order in app.ini and/or ui.

@TimoNotonica commented on GitHub (Mar 1, 2024): Same for me. Define default sort order in app.ini and/or ui.
Author
Owner

@levicki commented on GitHub (May 2, 2024):

I am curious, is there any valid reason why configurable sort order hasn't been implemented for 5 years? I get that it's a cosmetic issue compared to making sure other more important features work but still... it's unfathomable that it hasn't been done yet when it's such a basic feature of any list in any GUI.

@levicki commented on GitHub (May 2, 2024): I am curious, is there any valid reason why configurable sort order hasn't been implemented for 5 years? I get that it's a cosmetic issue compared to making sure other more important features work but still... it's unfathomable that it hasn't been done yet when it's such a basic feature of any list in any GUI.
Author
Owner

@lunny commented on GitHub (May 2, 2024):

Should this be a per org level configuration or a system level configuration?

@lunny commented on GitHub (May 2, 2024): Should this be a per org level configuration or a system level configuration?
Author
Owner

@micka190 commented on GitHub (May 2, 2024):

Personally, I'd be happy with a feature that was at least repo level or user level. I don't think system level makes sense since you probably want some flexibility (if there's different sorting modes). I'd prefer repo level over org-level, though I'd settle for org-level if it's the only choice.

@micka190 commented on GitHub (May 2, 2024): Personally, I'd be happy with a feature that was at least repo level or user level. I don't think system level makes sense since you probably want *some* flexibility (if there's different sorting modes). I'd prefer repo level over org-level, though I'd settle for org-level if it's the only choice.
Author
Owner

@levicki commented on GitHub (May 2, 2024):

@lunny

Here's what I would like to see:

  1. Default to sorting repos and orgs alphabetically everywhere.

Rationale:
Current order by last modified time is bad because people use muscle memory to navigate but repos and orgs keep jumping around as they are updated making consistent navigation impossible. Furthermore, items not sorted alphabetically make it harder to navigate by scrolling or skipping pages which is often faster than using search.

  1. Allow setting a system-wide sort default in app.ini

Rationale:
Perhaps someone will disagree with my first proposal and they will want to revert to current sort order. Allowing setting a system-wide default in config would let them accomplish that.

  1. Store manually selected sort order in user settings

Rationale:
This will allow individual users to override system-wide settings.

Hope that helps.

@levicki commented on GitHub (May 2, 2024): @lunny Here's what I would like to see: 1. Default to sorting repos and orgs alphabetically everywhere. Rationale: Current order by last modified time is bad because people use muscle memory to navigate but repos and orgs keep jumping around as they are updated making consistent navigation impossible. Furthermore, items not sorted alphabetically make it harder to navigate by scrolling or skipping pages which is often faster than using search. 2. Allow setting a system-wide sort default in `app.ini` Rationale: Perhaps someone will disagree with my first proposal and they will want to revert to current sort order. Allowing setting a system-wide default in config would let them accomplish that. 3. Store manually selected sort order in user settings Rationale: This will allow individual users to override system-wide settings. Hope that helps.
Author
Owner

@lunny commented on GitHub (May 3, 2024):

For the first requirement, now we have #30784.

@lunny commented on GitHub (May 3, 2024): For the first requirement, now we have #30784.
Author
Owner

@levicki commented on GitHub (May 3, 2024):

For the first requirement, now we have #30784.

That seems just for one spot in the UI, right?

@levicki commented on GitHub (May 3, 2024): > For the first requirement, now we have #30784. That seems just for one spot in the UI, right?
Author
Owner

@bryanpedini commented on GitHub (Jul 25, 2024):

I don't care what the default is, as long as there is a way to override it.

This. I mean, #2647 changed some defaults, but still no option neither in the database nor in app.ini to edit those, only current customizable thing I could find is ui.EXPLORE_PAGING_DEFAULT_SORT. No org default, no user default, nothing.

I do commits on old projects to tweak readmes, but I don't want them surfacing to the top

Also this too, it would be nice if it was possible to define a way for old repos to not be considered in the default "recently updated" sorting.
For example, if a repo is archived or some other flag, it should not be considered "recently updated", since it's "old anyways" or somethig.

@bryanpedini commented on GitHub (Jul 25, 2024): > I don't care what the default is, as long as there is a way to override it. This. I mean, #2647 changed some defaults, but still no option neither in the database nor in `app.ini` to edit those, only current customizable thing I could find is `ui.EXPLORE_PAGING_DEFAULT_SORT`. No org default, no user default, nothing. > I do commits on old projects to tweak readmes, but I don't want them surfacing to the top Also this too, it would be nice if it was possible to define a way for old repos to *not* be considered in the default "recently updated" sorting. For example, if a repo is archived or some other flag, it should not be considered "recently updated", since it's "old anyways" or somethig.
Author
Owner

@ezzra commented on GitHub (Aug 29, 2024):

I am no go developer, but is there any way to sponsor this adaption (only simple default order config) in any way?

@ezzra commented on GitHub (Aug 29, 2024): I am no go developer, but is there any way to sponsor this adaption (only simple default order config) in any way?
Author
Owner

@lunny commented on GitHub (Aug 29, 2024):

Maybe related #31921

@lunny commented on GitHub (Aug 29, 2024): Maybe related #31921
Author
Owner

@bryanpedini commented on GitHub (Aug 30, 2024):

Maybe related #31921

related commits indeed, however I don't see a call to the app.ini settings for configurable default sort order (am I missing something?)
not an experienced Go programmer but I would really like (when #31921 gets merged) to pick up those changes, dive into the code, and make them configurable via app.ini (maybe?)

@bryanpedini commented on GitHub (Aug 30, 2024): > Maybe related #31921 related commits indeed, however I don't see a call to the app.ini settings for configurable default sort order (am I missing something?) not an experienced Go programmer but I would really like (when #31921 gets merged) to pick up those changes, dive into the code, and make them configurable via app.ini (maybe?)
Author
Owner

@levicki commented on GitHub (Oct 20, 2024):

@lunny

I can't believe that only sort UI setting for explore repositories was added after this much time and even that sort is fundamentally broken — it sorts upper and lower case separately (first all upper then all lower) as if that's how humans ever sort names alphabetically anywhere... SMH.

Also, this isn't alpabetical sort guys — e comes before L:
image

@levicki commented on GitHub (Oct 20, 2024): @lunny I can't believe that only sort UI setting for explore repositories was added after this much time and even that sort is fundamentally broken — it sorts upper and lower case separately (first all upper then all lower) as if that's how humans ever sort names alphabetically anywhere... SMH. Also, this isn't alpabetical sort guys — `e` comes before `L`: ![image](https://github.com/user-attachments/assets/d891c1d2-10f3-4e69-ab27-b2af422ad0ba)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4228