Custom [login to view URL] sort function where cell has two values

Imekamilika Ilichapishwa Miaka 6 iliyopita Kulipwa wakati wa kujifungua
Imekamilika Kulipwa wakati wa kujifungua

I am using [login to view URL] and after the table is initialized in one column the cells "td" elements have the following html within.

<td>

<h4 data-pos="5">5</h4>

<span data-second="-4">-4</span>

</td>

I have a custom drop down in the table header with two buttons. Each button's click event is linked to this column and the associate data attributes. On click I would like the column to be sorted by either data-pos or data-second depending on the button clicked, when clicked again it will sort in ASC then DESC.

So you will need to write a function to get the data attributes and either re order the table or sort the table by these values.

You may find this helpful

[login to view URL]

[login to view URL]()

[login to view URL]()

My table builds from a JSON response from server. I would like you to use static data using my example above in jsfiddle and show your work.

Thank you

Kuprogramu ukitumia C# HTML JavaScript jQuery / Prototype PHP

Kitambulisho cha Mradi: #15424917

Kuhusu mradi

3 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

Imetuzwa kwa:

emreg

Hi there. I can do your datatable sorting project within a couple of hours. Thanks Relevant Skills and Experience javascript Proposed Milestones $25 USD - Final

$25 USD kwa siku 0
(Maoni 241)
6.3

3 wafanyakazi huru wanazabuni wastani wa $35 kwa kazi hii

leavetop

hello there,i have datatable experience.i can add sort functions thank you

$29 USD kwa siku 1
(Maoni 53)
5.4