Both answers are correct. -5 > -8 and -6 < |-8|.
I think you might have been worried about the -8 in the second problem. This | | is an absolute value sign. It basically turns any negative number positive. So this would actually be -6 < 8 .
8.4m questions
11.1m answers