Use Type.compareTo for comparison