silent scope ?

bingo bob
2009-09-19T06:31:00Z

I do this in my model.

  named_scope :popular, :order => ''name'', :conditions =>
[''popular_resort = ?'', true]
  default_scope :order => ''resort_height DESC, name''

By default my resorts are sorted by resort_height then name - works
fine.

Then when I do this Resort.popular I wish to override the sort order

I want my popular resorts sorted by name NOT altitude

It does not work? Resort.popular does this..

SELECT * FROM "resorts" WHERE (popular_resort = ''t'')
ORDER BY
resort_height DESC, name

i.e. it''s still doing the ORDER BY resort_height DESC bit which I
don''t
want.

What am I missing here?