Fixing bugs and issues with Redis sorting.