lafcadio 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lafcadio.rb +1 -1
- data/lib/lafcadio.rb~ +1 -1
- data/lib/lafcadio/mock.rb +1 -1
- data/lib/lafcadio/mock.rb~ +2 -0
- metadata +2 -2
data/lib/lafcadio.rb
CHANGED
data/lib/lafcadio.rb~
CHANGED
data/lib/lafcadio/mock.rb
CHANGED
data/lib/lafcadio/mock.rb~
CHANGED
@@ -40,6 +40,8 @@ module Lafcadio
|
|
40
40
|
if ( order_by = query.order_by )
|
41
41
|
objects = objects.sort_by { |dobj| dobj.send( order_by ) }
|
42
42
|
objects.reverse! if query.order_by_order == Query::DESC
|
43
|
+
else
|
44
|
+
objects = objects.sort_by { |dobj| dobj.pk_id }
|
43
45
|
end
|
44
46
|
if (range = query.limit)
|
45
47
|
objects = objects[0..(range.last - range.first)]
|
metadata
CHANGED