Based on an array paty and a sort order for each property, generate a hash string for an object that will sort accordingly