So check it out, if your comparator function returns a negative number, the first argument a will come first, before b. Just like negative numbers on the number line come first! If the function returns a positive number, the first argument a will come after b. The a item will be on the “right” side of of b, just like the positive numbers are on the “right” side of the number line!