Delete and sorting working completely.