Make sure that redis returned IDs are in the correct order