Skip to content

refactor: use slices.SortFunc for index ordering - #520

Open
luangucun wants to merge 1 commit into
ethstorage:mainfrom
luangucun:refactor/index-sortfunc
Open

refactor: use slices.SortFunc for index ordering#520
luangucun wants to merge 1 commit into
ethstorage:mainfrom
luangucun:refactor/index-sortfunc

Conversation

@luangucun

Copy link
Copy Markdown

The current index ordering uses an index-based sort.Slice callback, which couples the comparison logic to the backing slice.

Use slices.SortFunc with a typed comparator while preserving the existing ordering.

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