[SOLVED] About ordering by dates stored in a text field

More
8 years 11 months ago - 8 years 11 months ago #54008 by kath2015
hi there,

my question:
what do i have to do to order a category-page by custom date-field, sorted "newest first"?

my problem:
result seems not logically comprehensible; somehow both numeric and alphanumeric sorting
result in unwanted sortings.

my date-field is of type "Text (number/time/etc/custom validation)"

what i tried:
menu item config > list items creation > CUSTOM field ordering >
- Enable: Yes
- Custom field: <my date field>
- Direction: Descending
- Ordering Method: Numeric

field config > Input value Masking & Validation >
- Value Validation Mask: Date(yyyy/mm/dd)
- (actually i would prefer Date(dd.mm.yyyy), but i got the impression that sorting messes up then...?)

thanks for advice! :)
kath
Last edit: 8 years 11 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #54010 by ggppdk
Hello

it sounds like it would need conversion for proper ordering,
so you cannot do it by either numeric or alphanumeric sorting

using the "date" field instead of "text",
-- has the benefit of storing data into the database in a sortable way


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 11 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #54045 by kath2015
ok, thank you!
Last edit: 8 years 11 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago - 8 years 11 months ago #54116 by ggppdk
Hello

please note that v3.0.0 Beta7 / RC / final allows:

custom fields for the frontend ordering selector

via parameters in component / category / menu items


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 11 months ago by ggppdk.
The following user(s) said Thank You: kath2015

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #54146 by kath2015
wow, that's great news! will try today :)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.563 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline