Skip to content

Add chronological sorting for ADIF exports - #171

Open
rsuzuki0 wants to merge 2 commits into
on4kjm:masterfrom
rsuzuki0:feature/adif-chronological-sort
Open

Add chronological sorting for ADIF exports#171
rsuzuki0 wants to merge 2 commits into
on4kjm:masterfrom
rsuzuki0:feature/adif-chronological-sort

Conversation

@rsuzuki0

@rsuzuki0 rsuzuki0 commented Aug 3, 2026

Copy link
Copy Markdown

Summary

  • sort SOTA-ready ADIF exports chronologically by date and time automatically
  • add an opt-in FLEcli adif --sort flag for POTA, WWFF, and general ADIF exports
  • preserve source order for records with identical timestamps and never modify the FLE input file
  • warn when an unsorted non-SOTA export contains backward date/time transitions
  • document the behavior and add unit plus end-to-end coverage

Motivation

The SOTA importer requires ADIF records to be chronological, so the program-specific --sota option now guarantees importer-compatible ordering without an additional flag. FLE shorthand can legitimately produce out-of-order timestamps when a handwritten multi-band activation is transcribed in page order. Other export types retain their existing order unless --sort is requested.

Validation

  • go test ./...
  • go test -race -count=1 ./...
  • go vet ./...
  • manual end-to-end test on a real-world multi-band activation file

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