sorting done, dealloc acting weird