fix #4260: sort by distance doesn't work

fix #3914: Resorting of event lists not working