Sorting encounters before display