implemented sorting comments