# Catgorized list + pagination with sorting

**URL:** <https://www.ruby-forum.com/t/catgorized-list-pagination-with-sorting/130813>\
**Category:** Rails\
**Created:** [March 3, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/catgorized-list-pagination-with-sorting/130813 "2008-03-03T16:02:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dakshina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@dakshina](https://www.ruby-forum.com/u/dakshina)\
**Post date:** [March 3, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/catgorized-list-pagination-with-sorting/130813/1 "2008-03-03T16:02:28Z")

</div>

Hi Please help me on this

I have too Models

class Payee \< ActiveRecord::Base  
has\_many :bills  
end

class Bill\< ActiveRecord::Base  
belongs\_to :payee  
end

And I do need to have the list like following (need to have paging as  
well as shuld able to sort using column headings)

Payee Name Bill Invoice No Bill Due Bill Status

XYZ Company  
11111 2008-04-03 Not Cleared  
22222 2008-05-03 Overdue  
ABC COmpany  
33333 2007-09-12 Cleared  
44444 2007-12-01 Cleared

Is there any way to do this … I really have no idea… ANy help will be  
greatly appreaciate…

thanks
