Put in order · Vibe coding with Claude Code course · Module 13: Twitch clone

Order: chapters from a copy

Arrange the inside of sortChapters that sorts a copy of the chapters (one line):

Items to put in order

  • [...chapters]
  • )
  • (a, b) =>
  • a.start - b.start
  • .sort(

You can check the correct answer by solving this task in the CodeWorlds game.