extra test for sorting (passes)
JDK6 incompatible method replaced with custom implementation