Suppose we have a family budget.
Six articles.
Different values in percentage for each article.
We need a sort method.
We need an arrow function with two parameters.
And we need the ternary operator.
Ternary is used twice to compare object property values.
Here it is.
The budget articles have been sorted.