Skip to content

feat: Add link sort order feature#110

Merged
philprime merged 2 commits intomainfrom
feat/link-sort-order
Mar 20, 2026
Merged

feat: Add link sort order feature#110
philprime merged 2 commits intomainfrom
feat/link-sort-order

Conversation

@philprime
Copy link
Member

Add ability to sort links in a list by name or date, with the preference persisted per list.

Users can now sort links by:

  • Name (A-Z)
  • Name (Z-A)
  • Date Created (Newest)
  • Date Created (Oldest)
  • Date Modified (Newest)
  • Date Modified (Oldest)

The sort order is stored on each LinkListModel, allowing different lists to have different sort preferences. The default sort order is Name (A-Z), which also makes screenshot tests deterministic.

Implementation:

  • LinkSortOrder enum in FlinkyCore with sorting logic using localizedCaseInsensitiveCompare for names
  • New linkSortOrder property on LinkListModel (optional, defaults to .nameAscending)
  • Sort menu added to the link list detail toolbar (before the more menu)
  • Unit tests for all sort order behaviors

Note: The test file LinkSortOrderTests.swift needs to be added to the FlinkyCoreTests target in Xcode.

Add ability to sort links in a list by name (A-Z, Z-A) or date
(created/modified, newest/oldest). The sort preference is persisted
per list.

- Add LinkSortOrder enum with 6 sort options
- Add linkSortOrder property to LinkListModel
- Add sort menu to link list detail toolbar
- Add unit tests for sorting behavior
- Add localization strings for sort options

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sentry
Copy link

sentry bot commented Mar 19, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
Flinky com.techprimate.Flinky 1.1.3 (47) -- Install Build

@philprime philprime marked this pull request as ready for review March 19, 2026 14:33
@philprime philprime enabled auto-merge (squash) March 19, 2026 15:55
@philprime philprime disabled auto-merge March 20, 2026 14:35
@philprime philprime merged commit 13184da into main Mar 20, 2026
6 of 7 checks passed
@philprime philprime deleted the feat/link-sort-order branch March 20, 2026 14:35
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