/js_sort_table_DOM

JS Advanced task. Sort table.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

  1. Replace <your_account> with your Github username in the link
  2. Follow this instructions
    • There are no tests for this task so use npm run lint command instead of npm test

Task: Sort of employees table

Hi! In previous tasks, you already implemented table sort by salary. Today task is the same but with using browser events.

Your task: Implement table sorting in ASC order, by clicking on table headers.

As always, all the necessary styles have already been written for you, you do not need to change the layout or styles in this task.

Start table:

Preview

Implement table sorting by clicking on the title
  • Clicking on one of the table headers should sort the table rows in ASC order.