← Tables

T-01mediumTables

Sort by a column header

The first click on "Salary" sorts ascending; descending needs a second click. A second, smaller table below has its own sortable headers, and a card above names a different "top earner".

Find out who has the highest salary in the Employees table.

Endorphin steps

  1. Navigate to ${BASE_URL}/sandbox/t-01/
  2. In the "Employees" table, click the "Salary" column header twice
  3. Fill "Answer" with the name in the first row of the Employees table
  4. Click "Check answer"
  5. Verify "Correct: Hana Ivanov is first by Salary (descending)" is visible

Pass when

The result line says "Correct: Hana Ivanov is first by Salary (descending)". Any other answer, or an unsorted table, gives "Wrong answer".

Open the challenge page