tom sorts mapped to java Object