Related: fdo#78151 fix 'pIds unsorted' warning

Change-Id: I00c533a25a851d8bf57f1b0758e98915d2291ee9
(cherry picked from commit 52871279e9811d437ebe881e30b6c76208c84e65)
Reviewed-on: https://gerrit.libreoffice.org/9413
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>