rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
972 stars 364 forks source link

How to add custom sorting? #374

Open NastyaPashik opened 6 years ago

NastyaPashik commented 6 years ago

Hello, I want to sort string columns in my table. But bootgrid gets results case sensitive. For example: ['Nick', 'Amanda', 'Zoe', 'fiona'], after default sorting: ['Amanda', 'Nick', 'Zoe', 'fiona'], but I need:['Amanda', 'fiona', 'Nick', 'Zoe']. How I can do it in bootgrid?

bellwood commented 6 years ago

I recommend sanitizing the casing of your data... I was able to work around this by changing my queries to search case-insensitive and sorting case-insensitive.