sort read write fields