# Making sorting case insensitive

**URL:** <https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703>\
**Category:** Ferret\
**Created:** [June 6, 2008, 6:22am UTC](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703 "2008-06-06T06:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/u/EfrSSSSn_DSSS_az)\
**Post date:** [June 6, 2008, 6:22am UTC](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703/1 "2008-06-06T06:22:39Z")

</div>

Hello,

I’ve been trying to make sorting in ferret case insensitive without  
any luck. I’ve been searching the mailing list, the docs and nothing.

Apparently setting the type option for the sort to string should do  
it, but it doesn’t.

Does anyone know how to achieve this?

Thanks.

–  
Efrén Díaz

[http://www.efrendiaz.com](http://www.efrendiaz.com)

---

<div class="post-metadata">

**Author:** ![EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/u/EfrSSSSn_DSSS_az)\
**Post date:** [June 6, 2008, 11:23am UTC](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703/2 "2008-06-06T11:23:18Z")

</div>

You could always downcase the field you want to sort by before saving it  
to  
the index - is that an option?

2008/6/6 EfrÃ©n DÃ­az [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
