tmysik commented on code in PR #9431:
URL: https://github.com/apache/netbeans/pull/9431#discussion_r3388184885


##########
php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java:
##########
@@ -2331,7 +2332,9 @@ private void autoCompleteExpression(final 
PHPCompletionResult completionResult,
         Model model = request.result.getModel();
         Set<AliasedName> aliasedNames = ModelUtils.getAliasedNames(model, 
request.anchor);
 
-        for (final PhpElement element : 
request.index.getTopLevelElements(prefix, aliasedNames, Trait.ALIAS)) {
+        List<PhpElement> topLevelElements = new 
ArrayList<>(request.index.getTopLevelElements(prefix, aliasedNames, 
Trait.ALIAS));
+        topLevelElements.sort(Comparator.comparing(PhpElement::getName, 
String.CASE_INSENSITIVE_ORDER));
+        for (final PhpElement element : topLevelElements) {

Review Comment:
   I agree, no problem with this change. Thanks for catching and fixing it.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to