fix regression from #3968

Not ordering the IDs caused incorret ones returned

The spec is totally at the wrong level but I couldn't make
something up that exposed the bug at a deeper level :(
Revert "Revert "limit ShareablesFromPerson queries to improve performance""

This reverts commit 663daed8385d81c7bf57d2138409486f5d7d0ce6.
Merge remote-tracking branch 'local/develop' into social.mrzyx.de