걸려는데요 order by한다음에 rownum하면 order by 안먹히고

select
* 로 원래 sql 감싸서 where 절로 rownum 조건주니까

rownum 조건 안한거랑 똑같이 조회하는데 시간 너무 오래걸리던데 방법없을까요?