Permalink
Browse files

Alphabetize. So sue me...

  • Loading branch information...
1 parent 7fd3d1f commit eafcd47304cb963e66916749ecd98887dd2193ed @jnunemaker jnunemaker committed May 3, 2010
Showing with 12 additions and 12 deletions.
  1. +12 −12 lib/plucky/query.rb
View
@@ -20,28 +20,28 @@ def options(opts=nil)
self
end
- def filter(hash={})
- @criteria.update(CriteriaMerger.merge(@criteria, normalized_criteria(hash)))
+ def fields(*args)
+ @options[:fields] = normalized_fields(args)
self
end
- def where(js)
- @criteria['$where'] = js
+ def filter(hash={})
+ @criteria.update(CriteriaMerger.merge(@criteria, normalized_criteria(hash)))
self
end
- def skip(count=0)
- @options[:skip] = count.to_i
+ def limit(count=0)
+ @options[:limit] = count.to_i
self
end
- def limit(count=0)
- @options[:limit] = count.to_i
+ def reverse
+ @options[:sort] = @options[:sort].map { |s| [s[0], -s[1]] }
self
end
- def fields(*args)
- @options[:fields] = normalized_fields(args)
+ def skip(count=0)
+ @options[:skip] = count.to_i
self
end
@@ -50,8 +50,8 @@ def sort(*args)
self
end
- def reverse
- @options[:sort] = @options[:sort].map { |s| [s[0], -s[1]] }
+ def where(js)
+ @criteria['$where'] = js
self
end

0 comments on commit eafcd47

Please sign in to comment.