multi column sorting for Java-7 examples, code cleanup for camples examples