Precalculate popularity.
Fix popularity sorting.
Use precalculated sorting.
Fix specs.