got sorting but need to get it to save