slight bug if no order was set
fixes a bug with ordering