Sorting div asc desc by content

Dmitrij Holkin

If i have formed html with divs Here example

          <div>            
            <a href='#' class='auction-position block'>
                <div class='company-logo block'>Sort By Name</div>
                <div class='company-data block'>Sort By ID</div>
                <div class='auction-information block'>
                    <div class='auction-date block'>Sort By Date</div>
                    <div class='amount-days block'>Sort By Km</div>
                </div>
                <div class='amount-lots block'>Sort By Amount</div>
                <div class='rates block'>
                    <time datetime='00:00:26444641'>Sort By Time</time>
                </div>
                <div class='clear'></div>
            </a>
           </div>

How To sort divs by pressing on "Sort By .." ? It is possible to do wiht Javascript or jquery?

Stelium

you can change that into a table and use DataTables jquery plugin. https://www.datatables.net/

Here is and example of the javascript

    $(document).ready(function() {
        $('#table_id').DataTable({
           false,
           false, 
           false
        });
    } );

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

is there a way to choose the sorting of ksort? like ASC , DESC

From Dev

Jquery Isotope - sorting ASC DESC - strange behaviour

From Dev

Algolia sorting only ASC or DESC not both

From Dev

KendoUI Grid only allow sorting asc and desc with no unsorted allowed

From Dev

TokuDB sorting time different between ASC vs DESC

From Dev

dynamic asc desc sort

From Dev

SQL Dynamic ASC and DESC

From Dev

ASC DESC in the same link

From Dev

Sqlite: select, grouping according to one attribute desc. and sorting according to another asc

From Dev

Sorting issue: i have li and i want it to sort by clicking on Asc and Desc

From Dev

Sorting datatable by two columns with one column asc and the other one desc c#

From Dev

HTML TABLE PHP MySQL toggle MySQL sorting order ASC DESC on column header click

From Dev

dynamically change (ASC/DESC) sorting data depending on conditional state in mysql procedure

From Dev

Sorting a div content stored in a Variable

From Dev

conditional asc or desc in in a order byexpression

From Dev

Eloquent sortBy - Specify asc or desc

From Dev

Access Vba Setorderby ASC or DESC with and if

From Dev

Sort Asc and desc in the same column

From Dev

conditional asc or desc in in a order byexpression

From Dev

Order by in mysql without asc and desc

From Dev

Implementing sort ASC or DESC in Rails

From Dev

Elasticsearch: sorting integer desc

From Dev

DESC Sorting with NULLS LAST?

From Dev

OrderBy based on list of fields and Asc / Desc rules

From Dev

SQL: Order by column, then by substring mix asc and desc

From Dev

Datastax Driver Mapping ORDER BY ASC/DESC

From Java

Room DAO Order By ASC or DESC variable

From Dev

Order table column in asc/desc order

From Dev

Case statement for Order By clause with Desc/Asc sort

Related Related

  1. 1

    is there a way to choose the sorting of ksort? like ASC , DESC

  2. 2

    Jquery Isotope - sorting ASC DESC - strange behaviour

  3. 3

    Algolia sorting only ASC or DESC not both

  4. 4

    KendoUI Grid only allow sorting asc and desc with no unsorted allowed

  5. 5

    TokuDB sorting time different between ASC vs DESC

  6. 6

    dynamic asc desc sort

  7. 7

    SQL Dynamic ASC and DESC

  8. 8

    ASC DESC in the same link

  9. 9

    Sqlite: select, grouping according to one attribute desc. and sorting according to another asc

  10. 10

    Sorting issue: i have li and i want it to sort by clicking on Asc and Desc

  11. 11

    Sorting datatable by two columns with one column asc and the other one desc c#

  12. 12

    HTML TABLE PHP MySQL toggle MySQL sorting order ASC DESC on column header click

  13. 13

    dynamically change (ASC/DESC) sorting data depending on conditional state in mysql procedure

  14. 14

    Sorting a div content stored in a Variable

  15. 15

    conditional asc or desc in in a order byexpression

  16. 16

    Eloquent sortBy - Specify asc or desc

  17. 17

    Access Vba Setorderby ASC or DESC with and if

  18. 18

    Sort Asc and desc in the same column

  19. 19

    conditional asc or desc in in a order byexpression

  20. 20

    Order by in mysql without asc and desc

  21. 21

    Implementing sort ASC or DESC in Rails

  22. 22

    Elasticsearch: sorting integer desc

  23. 23

    DESC Sorting with NULLS LAST?

  24. 24

    OrderBy based on list of fields and Asc / Desc rules

  25. 25

    SQL: Order by column, then by substring mix asc and desc

  26. 26

    Datastax Driver Mapping ORDER BY ASC/DESC

  27. 27

    Room DAO Order By ASC or DESC variable

  28. 28

    Order table column in asc/desc order

  29. 29

    Case statement for Order By clause with Desc/Asc sort

HotTag

Archive