Skip to content

Commit

Permalink
Merge pull request #280 from etalab/features/sort-editor-by-name
Browse files Browse the repository at this point in the history
AuthorizationDefinition#editors: sort by name
  • Loading branch information
Isalafont authored Jul 16, 2024
2 parents 41628b8 + e247832 commit fe25df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/authorization_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.all
def editors
available_forms.select { |form|
form.editor.present?
}.map(&:editor).uniq(&:id)
}.map(&:editor).uniq(&:id).sort_by(&:name)
end

def self.indexable
Expand Down

0 comments on commit fe25df4

Please sign in to comment.