Sort requirements before saving the composer.json.