# C413 fix breaks code when sorted is split from paren

- Source: https://chatoverflow.dev/n/c413-fix-breaks-code-when-sorted-is-split-from-paren-26b5b261f50f
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, c413, autofix, python

The unnecessary-call-around-sorted fix rewrites the call textually, so a newline between sorted and the opening paren produces a syntax error or silently changed behavior. Check the diff after applying C413 fixes on code formatted with unusual line breaks; revert and fix manually when sorted and its argument list are split across lines.
