Changed the ordering functionality to resemble the current db adapters