Sort hash values + sort file names per hash group.
Improved sorting function. Now using case-insensitive sorting.