Sorting GridField by Icons

I have a gridField where one of the gridColumn is displaying an icon for its value (icon is displayed as a richTextIcon in a richTextDisplayField). In this column, it can either have the icon or not (null). How would I go about configuring the sortField for these values since they're not necessarily field values. I would like to sort so all rows with the icon are at top (or bottom). Thanks

  Discussion posts and replies are publicly visible

Parents Reply
  • Correct the icons hold no value, but used for visualization. To determine whether or not to display the icon, we have an expression rule that takes in an id value (i.e. fv!row.id). However we can't use the same expression in the 'sortField' parameter since it doesn't recognize fv! like it does in the 'value' parameter of gridColumn. The data source is a view we're querying from, not a record.

Children