until now i have the following Query:
select dl
from Dienstleistung as dl inner join
dl.DienstleistungsOrte as dlo with dlo.ID = :raumID
order by dl.Bezeichnung
Is it possible to order two colums with a condition?
What i want is to order by dl.Bezeichnung and dl.Sortierung. The Condition should be:
IF dl.Sortierung = 0 ---> order by dl.Bezeichnung
and
IF dl.Sortierung > 0 --->order by dl.Sortierung
If
dl.Sortierungcan be < 0 ornull, do:else, if
dl.Sortierungis always >= 0, do