mixArray with sort
Small changes