Skip to content

Commit

Permalink
Update function ordering in formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
NripeshN committed Dec 4, 2023
1 parent 86eb265 commit 6d78a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy_lint/formatters/function_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def sort_key(item: Tuple[str, ast.AST]) -> Tuple[float, int, str]:
and hasattr(n, "name")
and n.name == related_function
][0]
return (6, function_position, target_str)
return (1, function_position, target_str)

if _is_assignment_target_an_attribute(node):
return (5.5, 0, target_str)
Expand Down

0 comments on commit 6d78a0e

Please sign in to comment.