implemented sorting of feed items