alexrothenberg / motion-addressbook

MIT License
89 stars 30 forks source link

Fix issue of attempting to alter frozen array in iOS 11 #86

Open svicalifornia opened 7 years ago

svicalifornia commented 7 years ago

In iOS 11, this library fails because the abpeople array is frozen, and the in-place sort attempts to alter a frozen array. This change replaces the in-place sort with a reassignment to fix the issue.