From 33cdd383f31728caefd68227d2df8f47c904178f Mon Sep 17 00:00:00 2001 From: Saul Pwanson Date: Thu, 22 Feb 2024 20:24:35 -0800 Subject: [PATCH] [sort-] renamed self to sheet #2295 --- visidata/sort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visidata/sort.py b/visidata/sort.py index 7c082a07a..c629f6a2a 100644 --- a/visidata/sort.py +++ b/visidata/sort.py @@ -39,9 +39,9 @@ def __lt__(self, other): @Sheet.cached_property def ordering(sheet) -> 'list[tuple[Column, bool]]': ret = [] - for col, reverse in self._ordering: + for col, reverse in sheet._ordering: if isinstance(col, str): - col = self.column(col) + col = sheet.column(col) ret.append((col, reverse)) return ret