fixed storeOrder query