0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-22 13:57:46 -05:00
forgejo/routers/web/user
Gusted 270a2c7fa3 chore: remove usages of sort.Sort (#6689)
improve language stats rounding:

- Add tests (I had to omit some edge cases as the current method is
non-determistic in some cases, due to random order of map access).
- Document the algorithm used.
- Lower the amount of calculations that need to be done.
- Because of the aforementioned non-determistic don't use stable sort
and instead regular sort.

better sorting for `RepositoryList`:

- Add testing
- Use `slices.Sortfunc` instead of `sort.Sort`.
- Remove the methods needed for `sort.Sort`.

better git tag sorter:

- Use `slices.SortFunc` instead of `sort.Sort`.
- Remove `tagSorter` and its related methods.
- Added testing.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6689
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-01-26 13:30:00 +00:00
..
setting feat: add configurable cooldown to claim usernames (#6422) 2025-01-24 04:16:56 +00:00
avatar.go
code.go feat: filepath filter for code search (#6143) 2024-12-22 12:24:29 +00:00
home.go chore: remove usages of sort.Sort (#6689) 2025-01-26 13:30:00 +00:00
home_test.go chore: remove usages of sort.Sort (#6689) 2025-01-26 13:30:00 +00:00
main_test.go
notification.go fix: don't specify FOR clause for index hint 2024-12-06 22:13:17 +01:00
package.go chore: teach set module about iter.Seq (#6676) 2025-01-24 16:45:46 +00:00
profile.go Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
search.go
stop_watch.go
task.go