Minor bug fix to allow sorting on sub columns