Skip to content

Default sort by id when no sort descriptors provided#6

Merged
colemancda merged 2 commits into
masterfrom
feature/default-sort
Jul 15, 2026
Merged

Default sort by id when no sort descriptors provided#6
colemancda merged 2 commits into
masterfrom
feature/default-sort

Conversation

@colemancda

Copy link
Copy Markdown
Member

Summary

  • When a FetchRequest has no sortDescriptors, results are now ordered by id ascending instead of being left in unspecified SQLite order, matching CoreData's default fetch behavior.

Test plan

  • Added defaultSortByID test verifying fetch and fetchID return rows ordered by id when no sort descriptors are given
  • swift test — all 51 tests pass

@colemancda colemancda merged commit 46ebd93 into master Jul 15, 2026
12 checks passed
@colemancda colemancda deleted the feature/default-sort branch July 15, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant