Skip to content

Change default sorting of user/org search to alphabetical #2656

@daviian

Description

@daviian
  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL) search on explore page for user/org
    • No
    • Not relevant
  • Log gist:

Description

At the moment every page including a searchbox use the same searchbox template, thus every search uses the same default ordering.
IMO sorting users and organizations by newest doesn't make much sense.
It would be more natural to have it sorted alphabetically by default.

I think in order to achieve that, we have to change the searchbox template to allow a dynamic assignment of default ordering per page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions