Fixes issue with Oracle by enforcing the order of the results to check. Signed-off-by: Vincent Petry <vincent@nextcloud.com>