Click in order · Vibe coding with Claude Code course · Module 9: Discord clone

Ordering: Sorting a copy

Click to build the category sort that does not change the data from props: [...server.categories].sort((a, b) => a.position - b.position)

Items to click

  • [
  • .sort((a, b) => a.position - b.position)
  • ]
  • server.categories
  • ...

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