Ptr list sorting should use memmove instead of memcpy