filter created to sort likes and comments