Add array sort after changing centers