form sorting update