fixes ZEN-14738: Additional condition for the component sort key if the ...

...key is a list.