when there are no comments the sort select is not present so we get and error