Skip to content

Commit

Permalink
Sort grammars case-sensitively (#4446)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaigno authored Mar 5, 2019
1 parent 5ff272d commit 51c3ffc
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 101 deletions.
4 changes: 1 addition & 3 deletions script/list-grammars
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class GrammarList

# Grab the name of each language, sorted case-insensitively
def load_languages
Linguist::Language.all.map(&:name).sort do |a, b|
a.downcase() <=> b.downcase()
end
Linguist::Language.all.map(&:name).sort
end

# Load grammars.yml
Expand Down
Loading

0 comments on commit 51c3ffc

Please sign in to comment.