yes there will be, but i must admit that actually i do not have any idea of which is the best way (from a coding point of view) to do that in java.
The easyest would be to assign a priority and sort for both priority and filename. But is not user friendly