Custom datatables sort function where cell has two values

I am using datatables and in one column the cells "td" elements have the following html within.


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

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


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.

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.

Sorting on click will toggle between ASC and DESC for the data attribute.

Навички: Javascript, jQuery / Prototype

Деталі: postgresql custom sort function, javascript custom sort function, custom query sort using category, datatables custom search, datatables custom filter dropdown, datatables filter date range, datatables custom filter, datatables sort null last, jquery datatables date range filter example, datatable filter column, datatables custom search box, javascript, web development, virtuemart custom product sort order, wordpress custom field sort posts, wordpress advanced custom search sort, cre loaded custom product sort, javascript sort function, excel macro sort function, selected cell excel sheet using script

Про роботодавця:
( 23 відгуки(-ів) ) Mount Sinai, United States

ID Проекту: #15406209



Table Sorting By Attrbitures for data-table Relevante Fähigkeiten und Erfahrungen Javascript / jQuery Vorgeschlagene Milestones $15 USD - Sorting Mechanism

$15 USD за 1 день
(14 відгуків(-и))

15 фрілансерів(-и) у середньому готові виконати цю роботу за $26


My name is Sergey. I am Freelancer from [login to view URL], Russia. I can help you as Javascript/jQuery programmer to sort and reorder this table by either data-pos or data-second. In ASC od DESC direction Relevant Skills Більше

$50 USD за 1 день
(343 відгуків(и))
$50 USD за 0 дні(-в)
(69 відгуків(и))
$25 USD за 1 день
(34 відгуків(и))

Hello sir, i have 9 years of exp, i am ready to start work right now.............................................................

$10 USD за 1 день
(117 відгуків(и))
$30 USD за 0 дні(-в)
(49 відгуків(и))

Hello I read your job posting. It's possible. When I will click sort button, I will sort it using JQuery. I think I can do in a few of hours. Relevant Skills and Experience I hope you will send me your existing html Більше

$30 USD за 1 день
(17 відгуків(и))

Hi i just looked into your requirement and i think i can finish this without any problem and can start now. message me if you would like to proceed with me. Relevant Skills and Experience Jjquery datatable, javascirpt Більше

$15 USD за 1 день
(39 відгуків(и))

REAL OFFER : i can have worked on several datatables , including the custom ones. i have over 8 yrs of experience in this domain. We can chat for more details to get this work done. thanks. Relevant Skills and Experie Більше

$30 USD за 2 дні(-в)
(24 відгуків(и))

Hi there, i have vast experience with databases. Relevant Skills and Experience I have Experience of more than 6 years in Web Designing,Wordpress,codeigniter, WooCommerce, Opencart, PHP, MYSQL, js, JQUERY, PHP Framew Більше

$25 USD за 1 день
(6 відгуків(и))

A proposal has not yet been provided

$35 USD за 1 день
(8 відгуків(и))

I have the required experience, check my portfolio. Relevant Skills and Experience My skills are programming in Javascript, php, html, Jquery, etc. Proposed Milestones $30 USD - Complete the project. Additional Serv Більше

$30 USD за 2 дні(-в)
(3 відгуків(и))
$25 USD за 1 день
(0 відгуків(и))
$10 USD за 1 день
(0 відгуків(и))

It's a very basic task which I can deliver in few hours

$15 USD за 1 день
(2 відгуків(и))