tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit afdd43c42d38a034510a5c4791755ed39ddaf5a7
parent c8c0a86f492c9423a6330f9deaa86a718ef08c54
Author: Louis Burda <quent.burda@gmail.com>
Date:   Mon, 14 Aug 2023 02:47:10 +0200

Sort tracks and tags case-insensitively

Diffstat:
Msrc/tui.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tui.c b/src/tui.c @@ -428,7 +428,7 @@ tag_name_cmp(struct link *l1, struct link *l2) t1 = LINK_UPCAST(l1, struct tag, link); t2 = LINK_UPCAST(l2, struct tag, link); - return strcmp(t1->name, t2->name) <= 0; + return strcasecmp(t1->name, t2->name) <= 0; } void @@ -654,7 +654,7 @@ track_vis_name_cmp(struct link *l1, struct link *l2) t1 = tracks_vis_track(l1); t2 = tracks_vis_track(l2); - return strcmp(t1->name, t2->name) <= 0; + return strcasecmp(t1->name, t2->name) <= 0; } void