Added support for selecting records from a start id in a certain order (new or old)