LPS-43952 Sorting and filtering of web content does not work with oracle db

Applied decorator pattern as you suggested in https://github.com/brianchandotcom/liferay-portal/pull/18264

Please, keep an eye on https://issues.liferay.com/browse/LPS-45318 that is related to this whole comparator architecture.