I have a table
Roles(id int,,name vachar(50),role enum(CAD,CA,CM,CV ))
I want select data that order by specific values in specific order . My active model query: role.order('role asc') then the result:
1 name1 CAD
2 name2 CA
3 name2 CM
But I want the result like:
1 name1 CAD
2 name2 CM
3 name2 CA
Can anyone help me? Thanks in advance