Add a new parameter in sort criteria

Topics: Customizing Orchard
Mar 7, 2013 at 1:03 PM
Edited Mar 7, 2013 at 1:04 PM
Hello all! I want to make a projection that sort some pages depending on the user view count. So i have installed the voting module and then the content view counter module.I 've enabled the later and i 've managed to display the view counter in every page.But when i m trying to make a query that sorts based on the number of view counts there isn't such a parameter in sort criteria list.How can I add it to sort criteria list in order to sort my pages by how popular they are?

Thanx in advance
Mar 7, 2013 at 10:36 PM
You would have to create a class that implements ISortCriteriaProvider (which is exposed by the Projections module).