ash_paper_trail icon indicating copy to clipboard operation
ash_paper_trail copied to clipboard

paper_trail_versions should be sorted in ascending order based on version_inserted_at.

Open jechol opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Executing Api.load!(:paper_trail_versions) |> Enum.sort_by(& &1.version_inserted_at) every time is cumbersome.

Describe the solution you'd like Api.load!(:paper_trail_versions) should be automatically sorted based on version_inserted_at.

jechol avatar Jan 25 '24 14:01 jechol

This should be a pretty straightforward change, we can add the sort to the relationship that we add in the relevant transformer. PRs welcome!

zachdaniel avatar Jan 25 '24 15:01 zachdaniel

I'll do it.

jechol avatar Jan 25 '24 23:01 jechol