Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple sort not working if one field is datetime #305

Open
cgcullen opened this issue Feb 9, 2018 · 0 comments
Open

multiple sort not working if one field is datetime #305

cgcullen opened this issue Feb 9, 2018 · 0 comments

Comments

@cgcullen
Copy link

cgcullen commented Feb 9, 2018

I have this code which should sort by due date and then order number:

    <select
        class="jplist-select"
        data-control-type="sort-select"
        data-control-name="sort"
        data-control-action="sort">

          <option data-path="default">Sort</option>
          		<option data-path1=".sort_orderdue" data-path=".order" data-order1="asc" data-order="asc" data-type1="datetime" data-datetime-format="{month}/{day}/{year}" data-type="text">order number &#8593;</option>
          		<option data-path1=".sort_orderdue" data-path=".order" data-order1="desc" data-order="desc" data-type1="datetime" data-datetime-format="{month}/{day}/{year}"  data-type="text">order number &#8595;</option>
   </select>
<table>
<tr><td><span class="filter-text order">36691-1</span>&nbsp;</td>
 <td><span class="filter-text sort_jobproduct" >RTA</span></td>
 <td><span id="due-17481" class="filter-text  sort_customernotes "></span></td>
 <td><span id="due-17481" class="filter-text duedate dueNow due-edit sort_orderdue">02/02/18</span></td>
</tr>

<tr>
 <td><span class="filter-text order">36691-2</span>&nbsp;</td>
 <td><span class="filter-text sort_jobproduct" >RT</span></td>
 <td><span id="due-17482" class="filter-text  sort_customernotes "></span></td>
 <td><span id="due-17482" class="filter-text duedate dueNow due-edit sort_orderdue">02/02/18</span></td>
</tr>

<tr>
 <td><span class="filter-text order">36691-2m1</span>&nbsp;</td>
 <td><span class="filter-text sort_jobproduct" >RTA mini </span></td>
 <td>&nbsp;</td>
 <td><span id="due-17483" class="filter-text duedate dueNow due-edit sort_orderdue">02/02/18</span></td>
</tr>

<tr>
 <td><span class="filter-text order">36691-2m2</span>&nbsp;</td>
 <td><span class="filter-text  RTAmini- sort_RTA">RTA</span></td>
 <td>&nbsp;</td>
 <td><span id="due-17484" class="filter-text duedate dueNow due-edit sort_orderdue">02/02/18</span></td>
</tr>
<tr>
 <td><span class="filter-text order">36691-2m3</span>&nbsp;</td>
 <td><span class="filter-text sort_jobproduct" >RTAmini </span></td>
 <td>&nbsp;</td>
 <td  ><span id="due-17485" class="filter-text duedate dueNow due-edit sort_orderdue">02/02/18</span></td>
</tr>
<tr>
 <td><span class="filter-text order">36691-3</span>&nbsp;</td>
 <td><span class="filter-text sort_jobproduct" >RTA</span></td>
 <td>&nbsp;</td>
 <td><span id="due-17486" class="filter-text duedate dueNow due-edit sort_orderdue">02/02/18</span></td>
</tr>
</table></code>

screen shot 2018-02-09 at 1 47 22 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant