Ruby Sort Case Insensitive

[Solved] Ruby Sort Case Insensitive | Ruby - Code Explorer | yomemimo.com
Question : ruby sort case insensitive

Answered by : mot

wordlist.sort_by { |word| word.downcase }
wordlist.sort_by(&:downcase)

Source : | Last Update : Tue, 26 Jul 22

Answers related to ruby sort case insensitive

Code Explorer Popular Question For Ruby