Fix bug sorting filtered list