Closed

JavaScript: sort table rows by column

This project received 9 bids from talented freelancers with an average bid price of $32 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
N/A
Total Bids
9
Project Description

Hi,

what I need, is a plain javascript (no framework usage!) function which sorts a table's rows dynamically by a column.

example table:

a 5 2 3
b 2 3 4
c 3 2 1

required: function sort_table(table_id,column2sortby)

e.g. sort_table("tbl2besorted",1) may change the table from above to look like:

b 2 3 4
c 3 2 1
a 5 2 3

e.g. sort_table("tbl2besorted",3) may change the table from above to look like:

c 3 2 1
a 5 2 3
b 2 3 4


Cheapest offer wins.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online