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

default organization repository sort order #8795

Open
agaida opened this issue Nov 2, 2019 · 18 comments
Open

default organization repository sort order #8795

agaida opened this issue Nov 2, 2019 · 18 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality

Comments

@agaida
Copy link

agaida commented 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.

@lunny lunny added the type/enhancement An improvement of existing functionality label Nov 3, 2019
@stale
Copy link

stale bot commented 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 stale bot added the issue/stale label Jan 2, 2020
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jan 2, 2020
@stale stale bot removed the issue/stale label Jan 2, 2020
@mb2g17
Copy link

mb2g17 commented 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.

@ddetton
Copy link

ddetton commented 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.

@CrysK
Copy link

CrysK commented 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?

@micka190
Copy link

micka190 commented 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.

@bobmagicii
Copy link

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.

@TimoNotonica
Copy link

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

@levicki
Copy link

levicki commented 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.

@lunny
Copy link
Member

lunny commented May 2, 2024

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

@micka190
Copy link

micka190 commented 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.

@levicki
Copy link

levicki commented 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.

@lunny
Copy link
Member

lunny commented May 3, 2024

For the first requirement, now we have #30784.

@levicki
Copy link

levicki commented May 3, 2024

For the first requirement, now we have #30784.

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

@bryanpedini
Copy link

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.

@ezzra
Copy link

ezzra commented 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?

@lunny
Copy link
Member

lunny commented Aug 29, 2024

Maybe related #31921

@bryanpedini
Copy link

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?)

@levicki
Copy link

levicki commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests