sorting the fields in the docs + stuff