upd sorting array