I want to order the role of the members. Like :
Leaders
Co Leaders
Elders
Members
But when I use ORDER BY, it orders according to the alphabet. That is :
Co Leaders
Elders
Leaders
Members
Is it possible to do the sorting like that?
Use can also use Case statement to custom the order.
order by case columnname
when 'Leaders' then 1
when 'Co Leaders' then 2
when 'Elders' then 3
when 'Members' then 4
End
weigthfield to your table