From 6d78a0ead3124cbe4dc52c63461fd2a6eea4992a Mon Sep 17 00:00:00 2001 From: NripeshN Date: Mon, 4 Dec 2023 19:43:50 +0400 Subject: [PATCH] Update function ordering in formatter --- ivy_lint/formatters/function_ordering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy_lint/formatters/function_ordering.py b/ivy_lint/formatters/function_ordering.py index e6b77f6..b663f88 100644 --- a/ivy_lint/formatters/function_ordering.py +++ b/ivy_lint/formatters/function_ordering.py @@ -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)