added order to the purchases query