Fixed misspelling, fixed error on sorting in groups