concrete5/concrete5 — pull request #1729 by herent (2014-04-13 02:09:53+00:00)
Title: Fixed sorting by popularity for select attribute options

Sort by popularity uses all values for an option that have ever been saved. So if "tag 1" had been used 15 times in versions that were no longer active, then those 15 would count towards the total. Potentially, you could show an attribute as the "Most Popular" even though no pages were using it any more.

This fixes it to only use options that are selected for approved collection versions.