• Those are independent clauses.

    You could work more to give the correct order.

    SELECT empid

    FROM consumer

    WHERE empid in (2323,1236,5623)

    ORDER BY CASE WHEN empid = 2323 THEN 1

    WHEN empid = 1236 THEN 2

    WHEN empid = 5323 THEN 3

    ELSE empid

    END

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2