Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Field with node new comments seems to output an integer, but... is unsortable. Is it a bug or by design?
Comments
Comment #1
merlinofchaos CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: merlinofchaos commentedAs I said, as far as I know, there is no way to do it. Sorry.