fixing visitor sorting