Hi there
I am havine a problem sorting on a field using the ORDER BY statment.
Using the below code, i get the result ORDER BY rows as
119
129
1449
255
74
98
i need to sort this field to
74
98
119
129
225
1449
but it wont work with the ORDER BY e.field_value ASC i am using below
select l.id, concat( a.field_value, ' ', b.field_value, ' ', d.field_value ) as name, a.field_value as make, b.field_value as model, c.field_value as full_desc, d.field_value as category, e.field_value as price
from default_listingsDB l
left join default_listingsDBElements a on l.id = a.listing_id and a.field_name = 'make'
left join default_listingsDBElements b on l.id = b.listing_id and b.field_name = 'model'
left join default_listingsDBElements c on l.id = c.listing_id and c.field_name = 'full_desc'
left join default_listingsDBElements d on l.id = d.listing_id and d.field_name = 'category'
left join default_listingsDBElements e on l.id = e.listing_id and e.field_name = 'price'
where l.active = 'yes'
AND a.field_value ='janome'
order by e.field_value ASC
any help would be great.
thanks