sorting beacons by distance and games by progress