Skip to content

fix: tmpo stats now lists projects in the same order every time#20

Merged
DylanDevelops merged 1 commit into
mainfrom
ravel/fix-sorting
Dec 18, 2025
Merged

fix: tmpo stats now lists projects in the same order every time#20
DylanDevelops merged 1 commit into
mainfrom
ravel/fix-sorting

Conversation

@DylanDevelops
Copy link
Copy Markdown
Owner

Updated the stats display to sort projects alphabetically in both period and all-time statistics for consistent and predictable output. This improves readability and makes it easier to locate specific projects in the stats.

Pull Request Checklist

  • I have read and followed the contribution guidelines.
  • My pull request targets the main branch of tmpo.
  • I have tested these changes locally on my machine.

Description

This pull request improves the consistency and readability of project statistics output in the cmd/stats.go file by ensuring that project listings are displayed in alphabetical order. This affects both the period-based and all-time statistics views.

Display improvements:

  • Project statistics in both ShowPeriodStats and ShowAllTimeStats are now sorted alphabetically for a consistent and predictable display order. [1] [2]
  • Updated variable naming in ShowAllTimeStats for clarity and consistency (projectsallProjects).

Dependency update:

  • Added the "sort" package import to support alphabetical sorting of project names.

Updated the stats display to sort projects alphabetically in both period and all-time statistics for consistent and predictable output. This improves readability and makes it easier to locate specific projects in the stats.
@DylanDevelops DylanDevelops merged commit c0010fe into main Dec 18, 2025
6 checks passed
@DylanDevelops DylanDevelops deleted the ravel/fix-sorting branch December 18, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant