Which is correct, "sort compares strings differently from awk", or "sort compares strings differently than awk", or both are bad, and I should rephrase it?

  • It might help for you to define "sort", "string", and "awk" for those of us less programming savy – katatahito Jul 17 at 7:39

Neither wording is wrong. But, according to Google Books Ngram Viewer, differently from is more common than differently than—at least in writing.

differently from or differently than

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.