sorting posts based on views on home page and all popular page.