According to typical sources on thermodynamics, the warmer a liquid is, the longer it will take to freeze it.
For example, I recently was reading a book on refrigeration and this book specifically said that the hotter the refrigerant is, the longer it will take to condense it, so the refrigeration system has to take that into account when it is designed.
The basic theory is that there are two quantities heat of cooling and then latent heat of melting. So, the refrigeration system must remove both to freeze the liquid. Since the refrigeration system generally has a fixed rate of heat removal, the hotter the gas is, the longer it takes condense it.
However, it is well known that hot water freezes faster than cool water. If two cups containing water are placed in a freezer, one being hot, the other cool, then the hot one will freeze first and this can be proved by anyone. So, how is the anomaly explained theoretically?