[fix] added check for wrong filter field
[fix] use fromString() instead of valueOf()
[fix] added check for wrong sortBy field
[fix] removed default value for sortBy
[cleanup] formatting + imports
[fix] fixed test to reflect removal of default value for sortBy