Explicit support for the common date formats of yyyy-mm-dd
and yyyy-dd-mm
#191
Labels
enhancement
New feature or request
yyyy-mm-dd
and yyyy-dd-mm
#191
Background
At glance, the
\-d+
seems to be equivalent to the above formats, yet there is a subtle difference.When the regexp matches are expanded, the
\-d+
is treated as a number and uses number-specific expansion. For example2012-11-14
is expanded to a title prefix of00002012|00000011|00000014//
(or similar, example to show the idea).This works for sorting in general, yet when there is a need to mix this sorting with date-based suffixes of prefixes, there is a problem.
Namely, the explicit date patterns are expanded to ISO date format, so for the pattern
\[Mmm-dd-yyyy]
and a match ofNov-14-2012
the title prefix generated is2012-11-14//
. This obviously will not sort correctly with title prefix as00002012|00000011|00000014//
Goal
The common date formats of
yyyy-mm-dd
andyyyy-dd-mm
should allow mixing different date formats and prefix- plus suffix- notations within the same sorting ruleSpecs
New syntax to introduce:
yyyy-mm-dd
yyyy-dd-mm
and the typical usage should be covered by integration tests:
The text was updated successfully, but these errors were encountered: