changes in sort and search rules, add cache, stub for popular