Needs review
Project:
Flag Search API
Version:
2.0.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2020 at 14:26 UTC
Updated:
27 Feb 2025 at 12:50 UTC
Jump to comment: Most recent
Comments
Comment #2
milosr commented@Asterovim
Hi, you can, for example, add a "changed" field in the view.
Comment #3
wranvaud commentedIt's a pretty common practice to sort favorite items based on the date the item was flagged. We want the most recent flagged item on top and the oldest flagged item at the bottom. This is not about the date of the item itself, when it was created or changed, it's about the flagging.
At the moment we can filter an item based on if it's flagged or not but we can't sort it based on the date it was flagged, this would be very much appreciated.
The date of flagging is in the database so I've achieved this with a hook_views_pre_render that queries the database and reorder results but it's not ideal.
Comment #4
sorabh.v6Working on this.
Comment #6
sorabh.v6Code pushed and MR created. Needs review and if all's good then we can merge the code and close this issue.