Skip to content

Commit

Permalink
[dir-] sort by filename, after sorting by modtime
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef authored and anjakefala committed Nov 12, 2024
1 parent 9644219 commit ab4a7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class DirSheet(Sheet):
Column('filetype', width=0, cache='async', getter=lambda col,row: subprocess.Popen(['file', '--brief', row], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].strip()),
]
nKeys = 2
_ordering = [('modtime', True)] # sort by reverse modtime initially
_ordering = [('modtime', True), ('filename', False)] # sort by reverse modtime initially

@staticmethod
def colorOwner(sheet, col, row, val):
Expand Down

0 comments on commit ab4a7f8

Please # to comment.