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

just the fix, with tons of tests (:

If you want to run the tests agains an oracle db, you can use user "LPS-43952/lportal" in our oracle-xe server