Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
7.x-3.5
Component:
comment data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2013 at 21:23 UTC
Updated:
19 Mar 2013 at 02:40 UTC
Field with node new comments seems to output an integer, but... is unsortable. Is it a bug or by design?
Comments
Comment #1
merlinofchaos commentedIt is by design; that number is calculated by a separate query and thus can't be sorted as part of the query. So far as I know there simply is no way to do it, though someone really clever might be able to write the query that does it.
Comment #2
playfulwolf commentedis it possible to add some kind of php magic with Views PHP?
I have tried various tricks, but now I do not understand if it is Views PHP or "by design"
What kind of data coment_count outputs? Integer? String?
Comment #3
merlinofchaos commentedAs I said, as far as I know, there is no way to do it. Sorry.