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

fix: use slice Stale sort #6263

Merged
merged 1 commit into from
Apr 26, 2023
Merged

fix: use slice Stale sort #6263

merged 1 commit into from
Apr 26, 2023

Conversation

Hanwn
Copy link
Contributor

@Hanwn Hanwn commented Apr 24, 2023

  • Do only one thing
  • Non breaking API changes
  • Tested

EN:

What did this pull request do?

use stable sort algorithm to replace unstable sort

User Case Description

Registing multi plugins, but when execute Create mode, plugin executed order is not meet expectations.


中文:

PR目的:

使用sort的稳定排序替换不稳定排序。

场景

ctx:注册多个插件;
对插件进行排序后,插件的执行顺序会发生改变,导致一些重要的插件位置发生了变更,导致预期之外的结果。

@jinzhu jinzhu merged commit aeb2986 into go-gorm:master Apr 26, 2023
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.

3 participants