CMS-3981 Make query sorting consistent

Workspace-service now retains the sorting for querys on ids.