hugo/tpl/compare
acclassic f95fd57aac
tpl/compare: Sort special float values as string
When sorting strings a worng order is returned. This happens because the strings are first converted
to floating values to check whether or not they should be sorted as
floating values. When an error is returned the strings will be
handled as string literals.
No error will be returned when parsing Inf, Infinity or NaN (case insensitive) because they
will be coverted to special floating point values and therefore are
legal float values.
Now we check if the returned converted values are special floating
values and treat them as string literals.

Fixes #10389
2023-01-02 17:35:08 +01:00
..
compare.go tpl/compare: Sort special float values as string 2023-01-02 17:35:08 +01:00
compare_test.go tpl/compare: Sort special float values as string 2023-01-02 17:35:08 +01:00
init.go Fix raw TOML dates in where/eq 2022-06-07 13:02:58 +02:00