I want to sort a column based on text and numbers.
values i have are sorted like this:
- List:010
- List:100
- List:134
- List:2
- List:204
but what i need is
- List:2
- List:010
- List:100
- List:134
- List:204
the column type i am using is string. i tried to use sortType but that was not working.
{
name: 'listItems',
type: 'string',
mapping: 'listItems'
}
If you are using ExtJS 4.x, you can take advantage of the SortTypes class.
More information on the SortTypes doc page.