implement sorted fetches