Criteria Sort By DESC Full Caps not Working

Changed 
if (direction.equals(ORDER_DESCENDING)) {
to 
if (direction.equalsIgnoreCase(ORDER_DESCENDING)) {