- Removed unnecessary sortMap method.