Grouped views in keywords table

There were certain cases where the grouped views did not correctly display the order of the column headers, resulting in data being displayed in the wrong fields.

This has now been fixed.