Skip to content

Commit

Permalink
Sort categories
Browse files Browse the repository at this point in the history
  • Loading branch information
CoralineAda committed Oct 30, 2024
1 parent df61c13 commit e98460a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/categories_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class CategoriesController < ApplicationController

def index
@section_name = @question.label
@categories = Category.where(context: @question.context.name)
@categories = Category.where(context: @question.context.name).order(:name)
@enqueued_at = params[:enqueued_at].present? ? Time.at(params[:enqueued_at].to_i).strftime("%T %Z") : nil
end

Expand Down

0 comments on commit e98460a

Please sign in to comment.