sorting working, will not save