[java] Sort arrays of primitive types in descending order