Fix a crash in MM_SortMem() (Which isn't even used, but...)