1. A computer readable storage medium, comprising executable instructions to: retrieve a dataset from a data source wherein the dataset includes a first set of categories; build a data structure that represents the dataset; calculate a first plurality of merit values for the first set of categories; order the first set of categories based on a criterion; and return the first set of categories.