Click sorting table need show recently 1st sorted tr row in console log

Click sorting table need show recently 1st sorted tr row in console log

viking14viking14 Posts: 1Questions: 1Answers: 0

Click sorting table need show recently 1st sorted tr row in console log

when i click on table tr td the it will order by ascending and descending way so that i want to show first tr . like if click ascending want to show 1st name which ascended in console log . Eg "console.log(john)"

my code

$('#example').DataTable( {
    "paging":   false,
    "searching": false,
    "info":     false,
    data: vendor,
    "columns": [
        { "title": "number" },
        { "title": "name" },
        { "title": "money" }
    ]
} );

Answers

This discussion has been closed.