View Single Post
Old 09-01-2022, 01:12 AM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,038
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Sorting of months in Tag Browser

I have this as a composite column:

Code:
program:

	p = format_date ($date, 'yyyy');
	m = format_date($date, 'MMMM');

# elif so it doesn't render undefineds as '.'
	if p then strcat(p, '.', m) fi
In the tag browser, it sorts like this:

Click image for larger version

Name:	2022-09-01 02_09_54-Window.png
Views:	435
Size:	8.3 KB
ID:	196200

Is there an option to fix the sorting here, or should I just change it to output '01 (January)'?

EDIT:

Code:
program:

	p = format_date ($date, 'yyyy');
	MMMM = format_date($date, 'MMMM');
	mm = format_date($date, 'mm');
	m = strcat(mm, '(', MMMM, ')');

	if p then strcat(p, '.', m) fi
Renders '00 ({LongLocalizedMonth})' for everything. What did I mess up?

EDIT: It was the capitaliztion. 'MM', not 'mm.'

Last edited by ownedbycats; 09-01-2022 at 03:19 AM.
ownedbycats is online now   Reply With Quote