8000 Include milliseconds when sorting by time · Issue #978 · jarun/nnn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Include milliseconds when sorting by time #978
Closed
@gyvess

Description

@gyvess

Linux Kernel 5.11.10
nnn v4.0
BTRFS

Long story short, I was trying to get sxiv to order pictures in the same way nnn presents them from newest to oldest. These are hundreds of images downloaded within seconds using wget2. I think nnn ignores milliseconds when sorting by time, and therefore is unable to match the order of something like ls --full-time -t.

For example, here is a list of milliseconds printed in the exact order nnn presents files from newest to oldest.

16:03:56.244992419
16:03:56.399992413
16:03:56.361992414
16:03:56.071992426
16:03:56.157992422
16:03:56.203992421
16:03:56.032992427
16:03:55.774992438
16:03:55.997992429
16:03:55.786992437
16:03:55.948992431

Now here is the correct order if the files are supposed to be newest to oldest.

16:03:56.399992413
16:03:56.361992414
16:03:56.244992419
16:03:56.203992421
16:03:56.157992422
16:03:56.071992426
16:03:56.032992427
16:03:55.997992429
16:03:55.948992431
16:03:55.786992437
16:03:55.774992438

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0