diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index c8dffa55..163cc3d6 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -424,6 +424,10 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): fnc = lambda item: item.mimetype elif order == 'ctime': fnc = lambda item: -int(item.stat and item.stat.st_ctime) + elif order == 'atime': + fnc = lambda item: -int(item.stat and item.stat.st_atime) + elif order == 'mtime': + fnc = lambda item: -int(item.stat and item.stat.st_mtime) lst.sort(key=fnc) cwd.set_cycle_list(lst) return cwd.cycle(forward=None) |