Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sort by id implementation in trails.erl #32

Merged
merged 2 commits into from
Jul 3, 2015

Conversation

davecaos
Copy link
Contributor

@davecaos davecaos commented Jul 2, 2015

Fix #28

SortIdFun =
fun(A, B) -> maps:get(trails_id, A) < maps:get(trails_id, B) end,
SortedStoredTrails = lists:sort(SortIdFun, Trails),
lists:map(fun remove_id/1, SortedStoredTrails);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

elbrujohalcon pushed a commit that referenced this pull request Jul 3, 2015
Add sort by id implementation in trails.erl
@elbrujohalcon elbrujohalcon merged commit 4f27363 into master Jul 3, 2015
@davecaos davecaos deleted the dave.28.store_order branch July 3, 2015 13:16
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.

None yet

2 participants