InstruçÔes

Passo 30

Ordene diretamente o array local sorted usando sua função auxiliar sortByPriorityDescending().

O que fazer:

Testes:

  • VocĂȘ deve invocar `sortByPriorityDescending()` com o array `sorted`.

Console