Closed delbetu closed 9 months ago
@delbetu Thanks for the patch!
You don't mind if I go with
letters_last = ->(x) { x.is_a?(Numeric) ? x : 9_999 }
?
I'd like the L
to go last.
Thanks again!
@delbetu Thanks for the patch!
You don't mind if I go with
letters_last = ->(x) { x.is_a?(Numeric) ? x : 9_999 }
?
I'd like the
L
to go last.Thanks again!
@jmettraux sure! that is even better
@floraison We need to support this pattern in our project:
every month on the 1st and last
. It seems it should work but when executing the sort here:It was throwing:
`sort': comparison of String with 1 failed (ArgumentError)
It was doing something like this:
This PR substitutes
sort
withsort_by
to conditionally handle non numeric values.