fixes #1098 - "Sort by" on MessageIndex broken again.