From 771a7672876ff2c9649c919395a4d23f2a66f16f Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 5 Jun 2021 19:46:12 -0400 Subject: Bazaar: Merge "your orders" with "buy orders" and "sell orders", and sort buy orders highest price to lowest --- app/controllers/bazaar_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') 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 -- cgit v1.2.3