Given a sentence, it sort asc or desc way