order by clause for peep model