The class org.jboss.deployment.scanner.PrefixDeploymentSorter is a comparator to sort deployment URLs based on the existence of a numeric prefix. The name portion of the URL is evaluated for any leading digits. If they exist, then they will define a numerical ordering for this comparator. If there is no leading digits, then they will compare as less than any name with leading digits. In the case of a tie, the DeploymentSorter is consulted.
Example: These names are in ascending order:
test.sar, junk.ear, 001test.jar, 5test.rar, 6foo.jar, 120bar.jar
Note: The sorter is only used by the DeploymentScanner, not for ordering nested deployments.