added support for querying elementary bids in ascending order