Sort `def`