Task of week 1 (6th-13th October) | Marina Rovira Boix | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Marina Rovira Boix
@marinaroviraiboix
Comments (3)
antonbardera
Oct 24, 2022
You could set initial parameters that get some selected data
Reply
antonbardera
Oct 24, 2022
The sort function parameter should be a function that returns a positive value if a is sorted before b. Therefore, in your case the <symbol isn't correct and the call should be: selectedList = seldata.sort((a,b) => b.Weight_in_lbs - a.Weight_in_lbs)
Reply
antonbardera
Oct 24, 2022
I expected an HTML table and not a table from inputs, but it's also ok!
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
0
Follow
Follow
Task of week 1 (6th-13th October) | Marina Rovira Boix | Observable