sorting and reply2