Added unit test for case-insenstive sorting when ER is skipped due to a
record threshold