summaryrefslogtreecommitdiff
path: root/app/controllers/bazaar_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-05 19:46:12 -0400
committerDavid Gay <david@davidgay.org>2021-06-05 19:46:12 -0400
commit771a7672876ff2c9649c919395a4d23f2a66f16f (patch)
treeb31240d359b8ca8a752a3483d4d9db3434edb1a7 /app/controllers/bazaar_controller.rb
parent57252386234e802b3a3707d32a8b74130de4a56e (diff)
Bazaar: Merge "your orders" with "buy orders" and "sell orders", and sort buy orders highest price to lowest
Diffstat (limited to 'app/controllers/bazaar_controller.rb')
-rw-r--r--app/controllers/bazaar_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/bazaar_controller.rb b/app/controllers/bazaar_controller.rb
index 3492053..5ed8a59 100644
--- a/app/controllers/bazaar_controller.rb
+++ b/app/controllers/bazaar_controller.rb
@@ -1,6 +1,6 @@
class BazaarController < ApplicationController
def index
- @bazaar_orders = BazaarOrder.joins(:item).order("items.name ASC, price_each ASC, created_at ASC")
+ @bazaar_orders = BazaarOrder.joins(:item)
@items = Item.all.order(:name)
end