* feat: sort in collection fields
* fix: sort should call before hidden
* mov: test file
* refactor: toJSON with traverseJSON
* fix: toJSON test
* fix: sortBy with hidden field
* refactor: change sort strategy from offset to targetId
* fix: remove unnecessary query to optimize performance
* refactor: change sort api to allow object
* refactor: change function member positions
* fix: test case names
* fix: static to instance
* feat: add sort value initialization via beforeCreate hook
* fix: after reinitialization, hooks are lost
* test: temp test for hook
* fix: hooks defined in the table options does not work
* refactor: change sort config into sort type field and fix updateAssociations to create with foreignKey
* refactor: abstract utility functions
* fix: type definition
* fix: type and where value type
Co-authored-by: chenos <chenlinxh@gmail.com>
* refactor: change updateAssociations from set null to small grouped handling
* feat: add transaction for updateAssociations
* test: add more basic cases
* fix: pick options for different model methods
* fix: adjust options picking strategy
* test: add more case for list
* feat: allow order by associations in sorting
* fix: add more utils test in resourcer and fix except usage
* test: fix cases
* fix: page default value and max page size
* fix: page params and cases
* fix: list params
* fix: constants in list action
* fix: count when include, attributes when except and cases
* test: add case for hasMany.