MDB_RANGE_SET sets the cursor to the first element greater or equal the
key value. This element may be later than endTime and thus should not
be added to the result.
Reorder endTime check and appending the value, so only matching items
are returned. If the result set is empty, directly return.