fix: project name sorting

This commit is contained in:
wpetit 2025-02-24 21:56:54 +01:00
parent 20790b04b3
commit b398bd1601

View File

@ -74,7 +74,7 @@ func (m *IssueManager) GetUserProjects(ctx context.Context, user *model.User) ([
}
slices.SortFunc(refreshedProjects, func(p1 *model.Project, p2 *model.Project) int {
return strings.Compare(p1.Name, p2.Name)
return strings.Compare(strings.ToLower(p1.Name), strings.ToLower(p2.Name))
})
m.projectCache.Set(cacheKey, refreshedProjects, 0)