I ran into this issue, the store has to be in order for the grouping to work. Insert the new record just before the first record with the same group and this bug doesn't manifest.