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

sort abstraction #2

kamilsk opened this issue Mar 16, 2020 · 0 comments

sort abstraction #2

kamilsk opened this issue Mar 16, 2020 · 0 comments


Copy link

@kamilsk kamilsk commented Mar 16, 2020

I want to add a high level abstraction above the built-in sort package to provide some advantages:

  • genome.Sort(what, how) -> do sort
  • genome.Order(definitions ...OrderDefinition) -> create composite sorting rule

Where what is a target to be sorted, how is a rule (simple or composite) about how a target will be sorted, OrderDefinition contains a transform mechanism (byName, byCount) and the sort direction (ASC or DESC) to apply sort.Reverse.

@kamilsk kamilsk added this to the genome 1.0 milestone Mar 16, 2020
@kamilsk kamilsk self-assigned this Mar 16, 2020
@kamilsk kamilsk added this to To do in Minimum viable product via automation Mar 16, 2020
@kamilsk kamilsk added this to Backlog in Go binaries via automation Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Go binaries
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.