rubanraj54 / vue-bootstrap4-table

Advanced table based on Vue 2 and Bootstrap 4 ⚡️
MIT License
220 stars 58 forks source link

case insensitive sorting #24

Closed pordonez closed 5 years ago

pordonez commented 5 years ago

Hi,

It appears that sorting is case sensitive so, for example, items starting with "Z" appear before those starting with "a" after sorting. Can you add support for case insensitive sorting and make it configurable?

Thank you, Peter

rubanraj54 commented 5 years ago

Hi @pordonez ,

Your idea really makes sense.

I'll include this feature in my next release..

Cheers, Ruby.

rubanraj54 commented 5 years ago

Hey @pordonez

I've implemented this feature in my current branch. So you can use it from next release.

Cheers, Ruby.

rubanraj54 commented 5 years ago

Hey @pordonez ,

This feature is available from version 1.1.2. This is not yet documented in Readme.

Usage:

columns: [
    ...
    {
        label: "First Name",
        name: "first_name",
        sort: true,
        initial_sort: true, // "false" by default
        sortCaseSensitive: false, // "true" by default
    }
    ...
]

Cheers, Ruby.