Table with sorting

I’ve just created table with sorting using sort_helper
(http://wiki.rubyonrails.org/rails/pages/SortHelper2);
But how do U usually create tables with sorting by columns?
Is there something like displayTag library in java or I need to write
everything I need by myself (sort_helper isn’t enough for me)

Thanks,
Dmitry