Hello,
is it possible to use an Explode clause as the ORDER statement?
i need to select records from a table and then order them by one of the feilds. I know i can do that normally by smiply using the feild.
i have a feild that has multiple categories imploded in it.
here is the example:
id : name : category
1 : prod1 : |139|140|
2 : prod2 : |13|1120|
3 : prod3 : |60|555|
I would need to explode the category results and use the first result as the number to order the list by.
what i want:
select * from products where brand = 'brand' ORDER by 'explode("|",(trim($numbers,"|")))' ASC
is this possible?