Update solution.md

Putting `<tbody>` in backticks. Wasn't showing.
This commit is contained in:
Peter Roche 2019-11-03 22:52:10 -07:00 committed by GitHub
parent 9e7235f765
commit 4541b0481c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,6 @@ table.tBodies[0].append(...sortedRows);
3. Then sort them comparing by the content of the first `<td>` (the name field).
4. Now insert nodes in the right order by `.append(...sortedRows)`.
Tables always have an implicit <tbody> element, so we need to take it and insert into it: a simple `table.append(...)` would fail.
Tables always have an implicit `<tbody>` element, so we need to take it and insert into it: a simple `table.append(...)` would fail.
Please note: we don't have to remove them, just "re-insert", they leave the old place automatically.