Skip to content

Commit

Permalink
RegistryParser - sort getAllNames()
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed May 26, 2024
1 parent 8adcb44 commit f045e2f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;

Expand Down Expand Up @@ -144,7 +147,9 @@ private void refresh() {
* Note that some entries may represent the same registry object.
*/
public String getAllNames() {
return StringUtils.join(parseMap.keySet(), ", ");
List<String> strings = new ArrayList<>(parseMap.keySet());
Collections.sort(strings);
return StringUtils.join(strings, ", ");
}

}

0 comments on commit f045e2f

Please sign in to comment.