Implemented and tested sorting comments in a thread by image.