sorts an array now