update fieldsort plugin to be compatible with the latest version of my branch