Ako sam dobro razumeo sta hoces da uradis mozes koristi CASE u ORDER BY
Code:
ORDER BY
CASE
WHEN @NekaVrednost='Nesto' THEN KolonaPoKojojSortiras
WHEN @NekaVrednost='NestDrugo' THEN DrugaKolona
END
I am currently away on leave, traveling through time and will be returning last week.