correctly sort comments