Results 1 to 2 of 2

Thread: Wrong sort order of entries with non-ASCII characters

    You found a bug! We've classified it as EXTJS-7639 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default Wrong sort order of entries with non-ASCII characters

    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1.1a
    Browser versions tested against:
    • Chrome
    • Opera
    Description:
    • Sorting of entries with non-ASCII character is bad. Those entries get pushed on the end but still get storted among them self.
    The result that was expected:
    • a,b,c,?,?,d,?,e,f,g,h,i,j,k,l,,
    The result that occurs instead:
    • a,b,c,d,e,f,g,h,i,j,k,l,?,?,?,,
    Test Case:

    Code:
    Ext.create(function() {    Ext.define('TestModel', {
            extend: 'Ext.data.Model',
            fields: [
                {name: 'one', type: 'string'},
                {name: 'two', type: 'string'},
            ]
        });
        
        var store = Ext.create('Ext.data.Store', {
            model: 'TestModel',
            data : [
                {one: 'a', two: 'a'},
                {one: 'b', two: 'b'},
                {one: 'c', two: 'c'},
                {one: 'd', two: 'd'},
                {one: 'e', two: 'e'},
                {one: 'f', two: 'f'},
                {one: 'g', two: 'g'},
                {one: 'h', two: 'h'},
                {one: 'i', two: 'i'},
                {one: 'j', two: 'j'},
                {one: 'k', two: 'k'},
                {one: 'l', two: 'l'},
                {one: '?', two: '?'},
                {one: '?', two: '?'},
                {one: '?', two: '?'},
                {one: '', two: ''},
                {one: '', two: ''},
            ],
            sorters: [{property: 'one', direction: 'ASC'}],
        });
        
        Ext.create('Ext.grid.Panel', {
            store: Ext.data.StoreManager.lookup('simpsonsStore'),
            columns: [
                { text: 'Col1',  dataIndex: 'one' },
                { text: 'Col2', dataIndex: 'two', flex: 1 },
            ],
            store: store,
            renderTo: Ext.getBody()
        });
    });
    HELPFUL INFORMATION

    See this URL for live test case: http://jsfiddle.net/metalinspired/zsZLX/

    Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Win 7

  2. #2

    Default

    Bug exists in ExtJS 4.2 too

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •