I'm not quite sure what you mean by 'have the map use a comparator that uses field1.toString().compareTo(field2.toString())'. ```LinkedHashMap``` doesn't accept a comparator. 

Do you mean sort the fields that come out of ```eachClass.getDeclaredFields()```?

So something like this on line 52?

```
            Field[] declaredFields = eachClass.getDeclaredFields();
            Arrays.sort(declaredFields, new Comparator<Field>() {
                public int compare(Field o1, Field o2) {
                    return field1.toString().compareTo(field2.toString())
                }
            });
```

Thanks