Skip to content

Commit fa31e78

Browse files
committed
FindBy Method Generation: Order method by name
1 parent 6abd40e commit fa31e78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Utils/BeanDescriptor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,9 @@ private function generateFindByDaoCode(string $beanNamespace, string $beanClassN
11021102
}
11031103
}
11041104
}
1105+
usort($methods, static function (MethodGenerator $methodA, MethodGenerator $methodB) {
1106+
return $methodA->getName() <=> $methodB->getName();
1107+
});
11051108

11061109
return $methods;
11071110
}

0 commit comments

Comments
 (0)