Changed ordering for volume sql query