title: ORA-00936: missing expression in order by case
body: <p>Hello i have problem with missing expression in this code:  </p>
  
  <pre><code>create or replace view tabulkaliga as 
    select t.nazov, zs.zapasov, zs.vyhier*nvl(tr.bodyvyhra,0)+zs.remiz*nvl(tr.bodyremiza,0) body, zs.vyhier,zs.remiz,zs.prehier,sl.dali,sl.dostali from
        tim t join 
        ligatim lt on t.id=lt.tim join 
        liga l on lt.liga=l.id join 
        sport s on l.sport=s.id join 
        trvanie tr on s.trvanie=tr.id inner join 
        zapasstat zs on zs.liga=l.id and t.id=zs.tim inner join 
        skoreliga sl on sl.liga=l.id and sl.tim=t.id 
          order by 
            case 
              when tr.bodyvyhra is null then (zs.vyhier+0.5*zs.remiz)/ZS.ZAPASOV desc,ZS.VYHIER desc
              else body desc, zs.vyhier desc, sl.dali desc
            end; 
  </code></pre>
  
  <p>please help, thanks</p>