Use const &values for clip/composition sorting on group move.

Might help related to #473
1 job for master in 13 minutes and 46 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #23735
linux kf5-qt5 qt5.12

00:13:46

0.0%