# Acts\_as\_list sort by multiple items

**URL:** <https://www.ruby-forum.com/t/acts-as-list-sort-by-multiple-items/160176>\
**Category:** Rails\
**Created:** [February 12, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/acts-as-list-sort-by-multiple-items/160176 "2009-02-12T15:59:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tizzod](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/4da419/32.png) [@tizzod](https://www.ruby-forum.com/u/tizzod)\
**Post date:** [February 12, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/acts-as-list-sort-by-multiple-items/160176/1 "2009-02-12T15:59:28Z")

</div>

I have a Person model and I’m using acts\_as\_list so I can have drag/drop  
positioning of people. The only thing is, I want to be able to  
differentiate between male and female, ie. sort males separately from  
females. It seems completely useless to have two separate models since  
all the other attributes of a person are the same (name, address etc)  
Does acts\_as\_list allow ordering by, say, position and sex?

In writing this, I also just thought, maybe I can create a person model  
and have a male/female model extend from this with attribute sex, then  
use acts\_as\_list on the male/female model. I’m not sure i would know  
how to design the db for that.

Any thoughts on this?
