temp sort bug fix

Johannes Alanen requested to merge bugfix into main

Merge request reports