Add support for directory sorting with optional parameter. 

optional parameter to sort direct listing results.  this will help distribute jobs across nodes without 'bunching' tasks on nodes who's directory listings are first.