Javascript, 72

    function s(i){return i+'thstndrd'.substr(i%10>3||i>10&&i<20?0:i%10*2,2)}