eza
eza copied to clipboard
bug: sort by time do not work correctly without explicit oneline output
Expected sort like in ls -cr or something similar at least. But without explicit oneline output it's broken now
eza - A modern, maintained replacement for ls
v0.18.2 [+git]
https://github.com/eza-community/eza
eza --sort=time -l ( correct )
eza --sort=time -1 ( correct )
eza --sort=time (incorrect)
eza --sort=time --grid (incorrect)
- NixOS 24.05.20240223.cbc4211 (Uakari) x86_64
Expected
~/music ❯> eza --sort=time -l
drwxr-xr-x - neg 21 Feb 23:01 Duga-1-⟨2xN⟩-Abyss
drwxr-xr-x - neg 21 Feb 23:31 Yikii-⟨2xO⟩-Chorion
drwxr-xr-x - neg 22 Feb 03:18 Front·242-⟨1x0⟩-Tyranny·>For·You<
drwx------ - neg 22 Feb 14:01 Trollslottet-⟨2xO⟩-Sorgeberget
drwxr-xr-x - neg 22 Feb 14:41 Elffor-⟨2x8⟩-Unblessed·woods
drwxr-xr-x - neg 24 Feb 01:58 Nachtmystium-⟨2xC⟩-Silencing·Machine
drwxr-xr-x - neg 24 Feb 03:54 ne
Get (with wrong options)
eza --sort=time
MONO-⟨2xE⟩-The·Last·Dawn
Download-⟨1x6⟩-The·Eyes·of·Stanley·Pain
X-Fusion-⟨2x9⟩-Ultima·Ratio
L=Ame·Immortelle-⟨2x4⟩-Gezeiten·[Limited·Edition]
Noisia-⟨2xD⟩-DmC:·Devil·May·Cry·(Original·Game·Soundtrack)·[Bonus·Version]
But tail fixes it somehow again(expected order):
~/music ❯> eza --sort=time|tail
MIDNIGHT·ODYSSEY-⟨2xN⟩-Biolume·Part·3-A·Fullmoon·Madness
Pauldron-⟨2xO⟩-Brogvar·and·Wyrgan=s·Quest·for·the·Basilisk·Horn
Steve·Roach·feat··Robert·Rich-⟨2xO⟩-Waves·of·Now
Duga-1-⟨2xN⟩-Abyss
Yikii-⟨2xO⟩-Chorion
Front·242-⟨1x0⟩-Tyranny·>For·You<
Trollslottet-⟨2xO⟩-Sorgeberget
Elffor-⟨2x8⟩-Unblessed·woods
Nachtmystium-⟨2xC⟩-Silencing·Machine
new
Thanks for reporting this. especially for the extra info about tail
fixing it.. That really narrows it down cuz we know where we check to see if it's piped. :+1:
Thanks for reporting this. especially for the extra info about
tail
fixing it.. That really narrows it down cuz we know where we check to see if it's piped. 👍
Hello! I've found that if font in terminal is small enough and you can print to output several columns(for example three columns) sorting is ok again.