View Issue Details

IDProjectCategoryView StatusLast Update
0005421Composrcore_fieldspublic2024-07-31 22:23
ReporterPatrick SchmalstigAssigned ToChris Graham 
SeverityMinor-bug 
Status assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0005421: Catalogue sort ordering improvements
DescriptionCatalogue field sort orders should probably be defined as a hook function. This is because some fields, such as date, are not properly sorted. I expect date fields to be sorted internally by timestamp. Instead, they are sorted according to the string value when displayed on the catalogue page.
Additional InformationIt is possible this is already implemented. If so, treat this issue as a bug for the date field, and go through all field types to make sure they sort as expected.
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2024-07-24 21:54

administrator   ~0008911

This sounds like a bug. We can't sort at run-time. Always imagine there are a million records of anything - sorted in memory is not an option, we need to be able to sort via MySQL index. IIRC sometimes we do have to sort at run-time but this should be only for edge-cases where we could never hope for good performance.

Patrick Schmalstig

2024-07-31 22:23

administrator   ~0009036

Assigning to you Chris. Looks like this will be more complicated to do than expected because date and date_time fields are stored as strings. So they will be sorted as such.

Issue History

Date Modified Username Field Change
2023-10-21 07:04 Patrick Schmalstig New Issue
2023-10-21 07:05 Patrick Schmalstig Additional Information Updated View Revisions
2024-03-30 14:04 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-03-30 14:05 Patrick Schmalstig Tag Detached: Roadmap: v11
2024-03-30 14:05 Patrick Schmalstig Tag Attached: Roadmap: Over the horizon
2024-03-30 14:05 Patrick Schmalstig Project Composr alpha bug reports => Composr
2024-03-30 14:28 Patrick Schmalstig Category General / Uncategorised => core_fields
2024-07-24 21:53 Chris Graham Tag Attached: Roadmap: v11
2024-07-24 21:53 Chris Graham Tag Detached: Roadmap: Over the horizon
2024-07-24 21:53 Chris Graham Severity Feature-request => Minor-bug
2024-07-24 21:54 Chris Graham Note Added: 0008911
2024-07-31 22:23 Patrick Schmalstig Assigned To => Chris Graham
2024-07-31 22:23 Patrick Schmalstig Status non-assigned => assigned
2024-07-31 22:23 Patrick Schmalstig Note Added: 0009036