[SOLVED] Date ordering not sorting properly

More
8 years 11 months ago - 8 years 11 months ago #58656 by Ninjakitten
I've got a custom date field which my items are supposed to sort on. It's behaving oddly. It sorts as far as the year, but after that it goes to the secondary criterion (currently order within category, although previously it was alphabetical by title), while ignoring the month and day. So, if I have an item dated 2003-08-19, a new item dated 2003-09-12 would be sorted above it, instead of below as it should be. However, 2004-01-01 sorts below, as expected.

In the tables, the relevant field (17) in flexicontent_advsearch_index only has year-month (i.e., 2003-8, not 2003-08-19), and flexicontent_advsearch_index_field_17 only has year-month in the same manner. However, it seems to me that if that were the issue, it should at least sort as far as month and only fail when it got to ordering on days. In flexicontent_fields_item_relations, field 17 has the full date as expected, and as it shows up when editing the item, i.e., 2003-08-19. In flexicontent_items_ext, the relevant portion under search_index is vvv2003-08.

What's going on here? How can I get it to sort as expected? I really need this to work; it's integral to my application.
Last edit: 8 years 11 months ago by Ninjakitten. Reason: Marking as solved.

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

More
8 years 11 months ago #58657 by micker
please note flexicontent and joomla version ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
8 years 11 months ago #58658 by Ninjakitten
Sure, sorry about that -- Joomla 3.4.5, and Flexicontent 3.0.8.

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

More
8 years 11 months ago #58659 by ggppdk
Hello

please use v3.0.9-RC6c, it may fix a related issue

also
- "search_index" is not used for sorting it is used only for text search
- value_id column is used for filtering "indexable" fields and for dates fields: date, created, modified (*publish_up, *publish_down)

* via date field configured to use them

also to which sorting ?
- the item list ?
- or the values of the date filter ?


-- 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...
The following user(s) said Thank You: Ninjakitten

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

More
8 years 11 months ago #58660 by Ninjakitten
The ordering of the item lists; I haven't really poked at filtering yet. I'll find that RC and see if it helps...

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

More
8 years 11 months ago #58661 by Ninjakitten
Yes! The new 'Date' ordering method option seems to have whipped it into shape! Thank you so much. :)

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.740 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