我在其中用的SQL语句排序没有作用,不知道什么原因,请帮忙?
SQL:select a.part_id,a.primary_procedure_id,a.procedure_seq,a.recipe_seq,d.description  recipe_description
  ,a.called_procedure_id,a.recipe_id,a.stage,a.eqp_type,a.logical_ppid,a.logical_ppid_value
  ,b.parameter_name
  ,decode(b.parameter_name,null,'',pruncard.get_muti_parameter_value(a.lot_id,a.part_id,a.primary_procedure_id,a.called_procedure_id,a.recipe_id,b.parameter_name))  parameter_value
  from lot_runcard  a
    ,c_pro_rcsp   b
    ,r_lot_lotx   c
    ,c_pro_rcvn   d
    ,c_pro_clpd   e
  where a.lot_id=c.lot_id
  and a.lot_id=?
  and a.recipe_id is not null
  and a.recipe_id=b.recipe_id(+)
  and a.recipe_id=d.recipe_name||'.'||lpad(d.recipe_ver,2,'0')
  and SUBSTR(a.called_procedure_id,1,INSTR(a.called_procedure_id,'.')-1)=e.called_procedure_name
  order by DECODE(e.procedure_type,'A',1,'R',2,'N',3),a.procedure_seq,a.recipe_seq