Details
Description
In the RI class PrintHelper constructor, can you rearrange the services array so that the default service is in the zeroeth position? In the method PrintHelper.getSetupDialog(), you call ServiceUI.printDialog(), but since the service array is in "random" order, the "default" printer is also random.
PrintServiceLookup has two lookup calls one for all services and one for the default service. I couldn't find any documentation about the services array from PrintServiceLookup.lookupPrintServices being random but I can take their word for it. Adding code that will swap the default service with which ever service at index 0.