Skip to content

Can table sort alphabet work? #2

@chilijung

Description

@chilijung

I've tried to sort by alphabet, but it can't work. Can it work?

script I am testing:

     <body>
        <div id="table">
        </div>

        <script>
            var data = [
                [ 'Rautavaara', '99.73 %' ],
                [ 'Pelkosenniemi', '99.69 %' ],
                [ 'Kiikoinen', '99.68 %' ],
                [ 'Luhanka', '99.63 %' ],
                [ 'Reisjrvi', '99.6 %' ],
                [ 'Savukoski', '99.57 %' ]
            ];

            var data_col = [
                { text: 'Kunta', sort: TableSort.alphabet},
                { text: 'Osuus', sort: TableSort.numeric}
            ]

            TableSort(
                '#table',
                data_col,
                data,
                { width: '400px', height: '300px' });
        </script>
    </body>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions