Fix EZP-22851: Place-list sort

## Link ##
https://jira.ez.no/browse/EZP-22851
## Description ##
Fix the place-list sorting bug when we change the value of max distance more than 1 time.