Apologies if this question has already been answered, I've already done an extensive search but haven't come across an answer. Is it possible to do an alphabetical sort by with own defined.
Example items with cell name:
Sort By name ASC:
Brand1 Model1 Premium
Brand1 Model1 Standard
Brand1 Model1 Normal
Brand1 Model2 Normal
Brand1 Model2 Premium
Brand1 Model2 Standard
Brand1 Model3 Normal
Brand1 Model3 Premium
Brand1 Model3 Standard
But I want defined own order example:
Brand1 Model2 Premium <- model2 firt and best version
Brand1 Model2 Normal <- model2 next alphabetical order
Brand1 Model2 Standard <- model2 next alphabetical order
Brand1 Model1 Premium <- model2 next alphabetical by premium first
Brand1 Model1 Normal
Brand1 Model1 Standard
Brand1 Model3 Premium
Brand1 Model3 Normal
Brand1 Model3 Standard
I try used like as:
Case `name`
when "Brand1 Model2 Premium" then 1
when "Brand1 Model2 %" then 2
when "Brand1 Model1 Premium" then 3
when "Brand1 Model1 %" then 4
when "Brand1 Model% Premium" then 5 <- next normal sorting only by
when "Brand1 Model%" then 6
else 7
end,
Of course Brand, Model and version is one cell. Exactly it's name of product. I don't explode product name.