Ruby gotcha: string comparison is case sensitive

Posted on March 14, 2012

Here is a Ruby gotcha: String comparison is case sensitive.

If you need to sort a hash, for example, based on say “name,” you can do:


No Replies to "Ruby gotcha: string comparison is case sensitive"


    Got something to say?

    Some html is OK

    This site uses Akismet to reduce spam. Learn how your comment data is processed.