diff --git a/forms/gridfield/GridFieldSortableHeader.php b/forms/gridfield/GridFieldSortableHeader.php index 732c3cc10..e1dd7d6a0 100644 --- a/forms/gridfield/GridFieldSortableHeader.php +++ b/forms/gridfield/GridFieldSortableHeader.php @@ -33,6 +33,11 @@ class GridFieldSortableHeader implements GridField_HTMLProvider, GridField_DataM $field->addExtraClass('ss-gridfield-sort'); if($state->SortColumn == $columnField){ $field->addExtraClass('ss-gridfield-sorted'); + + if($state->SortDirection == 'asc') + $field->addExtraClass('ss-gridfield-sorted-asc'); + else + $field->addExtraClass('ss-gridfield-sorted-desc'); } } else { $field = new LiteralField($columnField, $title);