sort field fix