I'm trying to order items in a content query web part from a discussion board by the number of replies to each item (ItemChildCount). Is there an easy way to go about this? Any help would be greatly appreciated.
In order to apply Grouping and Sorting for ItemChildCount field
include explicitly this field using AdditionalGroupAndSortFields property
and select for List Type: Discussion Board and for Content Type: Discussion (as shown on picture below)