Some simple changes

Add intellij idea ignore file.

Add REVERSE parameter to SortUtil.getComparator().

Simplify complex condition.