Orders: Can't sort by customer name. Is it possible? #726
Replies: 2 comments 1 reply
-
I've just taken a look to figure out how the sorting on Listing Tables works and I'm not sure if it's a front-end or a back-end thing... will have to ask next week. If it's a backend thing, it means we'll probably need to create our own 'Customer' fieldtype so we can override how the sorting is done. This fieldtype will probably require quite a bit of work since it'll need to work with all 3 customer drivers we support. So... sadly, this doesn't seem like a quick fix. |
Beta Was this translation helpful? Give feedback.
-
It's not currently possible to order entries by a field on an Entries field (or any other relationship field for that matter) which makes this pretty much impossible to implement. I've opened an feature request on the Statamic side for this: statamic/ideas#875 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
On the Orders listing table, when you try sorting by the customer column, it doesn't really work. Ideally, they should sort by first/last name but they don't.
I'll need to take a look and see if it's even possible to customise what Statamic sorts by, it might be the case that it's not.
Beta Was this translation helpful? Give feedback.
All reactions