1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
436 stars 177 forks source link

Multi sort seems not to work #237

Open ilune opened 7 years ago

ilune commented 7 years ago

Hello,

I'm trying to implement multi sort, but it doesn't seems to work:

It works:

 <select 
            class="selectpicker" 
            data-control-type="sort-select" 
            data-control-name="sort" 
            data-control-action="sort">
            <option data-path="default">Trier par</option>
                <option 
                    data-path=".ds-position"
                    data-order="desc"
                    data-type="number"
                    >Section</option>
        </select>

It doesn't work:

        <select 
            class="selectpicker" 
            data-control-type="sort-select" 
            data-control-name="sort" 
            data-control-action="sort">
            <option data-path="default">Trier par</option>
                <option 
                    data-path=".section-position"
                    data-order="asc"
                    data-type="number"
                    data-path1=".ds-section" 
                    data-order1="asc"
                    data-type1="number"
        </select>

It's seems parameters are taken by jplist: capture du 2016-11-17 16-17-59

But the program just put the list to the loading state and doesn't made any sorting.

1rosehip commented 7 years ago

Hi, Please create reproducible test case with jsFiddle, jsBin, Codepen or other similar service to share your test case.

Thanks

ilune commented 7 years ago

Hello,

sure, here it is: https://jsfiddle.net/dr65ur4e/2/

I don't know why, i just realize that it doesn't work on chrome, but the test works on firefox: sort by "Titre" (title) but doesn't sort by "Section" when i put data-path1 attribute.

Thank you

hossam2015 commented 7 years ago

any chance you are going to fix this bug ??