OKLAHOMA CITY (CNN) - Two former Oklahoma County jail guards have been sentenced for punishing inmates with a popular children's song.

Gregory Cornell Butler Jr. and Christian Charles Mile pleaded no contest to misdemeanor cruelty charges for the 2019 incident. 

The two were accused of forcing inmates at the jail to stand while handcuffed and listen to children's songs on repeat, including "Baby Shark."

Butler and Miles were put on probation for two years and fined $200. They were also ordered to complete 40 hours of community service and pay $300 in compensation for the victims. 

Both resigned once the investigation began.