checkprinting: avoid incorrect replacement of split values

Authored by tbaumgart on Dec 25 2019, 9:21 AM.

Description

checkprinting: avoid incorrect replacement of split values

Template parameters for split values are now replaced in descending
order.
If we replace the template parameter 'SPLITVALUE1' before
'SPLITVALUE10',
the latter is erroneously overwritten with the value from the former,
followed by '0'.

Cherry picked from commit 9ae5d7c17654dc57b396571ddd630305674ff3a2
CCBUG:415411
Reviewed By: tbaumgart
Differential Revision: https://phabricator.kde.org/D26134

(cherry picked from commit 3227834a97fc62537a3b60d91c91de1f7ce2dfe7)