FIX project category order positoin

This commit is contained in:
Jasder 2020-10-22 22:45:05 +08:00
parent bfbe1fdce5
commit 3f29c09b1b
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class ProjectCategoriesController < ApplicationController
end
def group_list
@project_categories = ProjectCategory.where('projects_count > 0')
@project_categories = ProjectCategory.where('projects_count > 0').order(projects_count: :desc)
# projects = Project.no_anomory_projects.visible
# @category_group_list = projects.joins(:project_category).group("project_categories.id", "project_categories.name").size
end